[Fixed]-Django QuerySet in template for relational models

1👍

I case of calling provider you call related manager so it return None because manager have no method like this.
If you want to retrieve objects from managers, you should call self.providers.all()
In your case, template tags should looks like this:

{% for item in object.providers.all %}
    {{ provider.name }}
{% endfor %}

Leave a comment