Displaying Category object (1) instead of Category name in django admin panel | PYTHON

Опубликовано: 28 Сентябрь 2024
на канале: Infinetsoft solutions
966
11

Displaying Category object (1) instead of Category name in django admin panel
In Django project, the Admin panel displays the Category records like this Category Object(1). And also not showing the dropdown values instead it showing the data objects.
Solution for the problem:
It was happening because of improper indentation of _str_ function.

✅Subscribe: https://www.youtube.com/infinetsoftso...
✅Blog: https://www.infinetsoft.com, ✅Tech:https://chiptrolls.com
✅ Twitter:   / infinetsoft