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

Published: 19 February 2023
on channel: 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