When I want to show a queryset passed to a template in Django, and there is only one record, is it necessary to loop?
I have something like:
{% for x in blobs%}
{{ x.id }}
{% endfor %}
Which works fine. But only one record is in blobs, as it was filtered to a specific id by the view.
Would it not be better than to just access {{blobs.id}} directly? If so, what is the correct way to do that?