I have one many to many field in my model.py
in that case i'm getting data as a queryset. But i want data as list. How to achieve that ?
I have one many to many field in my model.py
in that case i'm getting data as a queryset. But i want data as list. How to achieve that ?
It is because there are more than one variable in Developer model. I think you are showing your data in a table data for that to work you should assign a str(self) function for the Developer model as it is mentioned below link:
django display content of a manytomanyfield
I hope it is clear.
This will work
{% for rt in JIRA %}
{% for dev in rt.Developer.all %}
<td>{{dev}} </td>
{% endfor %}
{% endfor %}