1👍
✅
If you have a QuerySet
object then template will show this object’s __repr__
method. To show internal objects you have to use for
loop:
{% for category in auction.category.all %}
{{ category }} {{ category.category }}
{% endfor %}
or if you really want it (but it’s not good practice):
{{ auction.category.first }}
Source:stackexchange.com