Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django data from many to many field in template

{% for place in places %}
    Name: {{ place.name }}<br/>
    Area: <br/>{% for area in place.area.all %}{{ area }}<br/>{% endfor %}
{% endfor %}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #data #field #template
ADD COMMENT
Topic
Name
2+5 =