Use place.area.all in the template
http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships
{% for place in places %}
Name: {{ place.name }}<br/>
Area: <br/>{% for area in place.area.all %}{{ area }}<br/>{% endfor %}
{% endfor %}
Related Contents:
- Numeric for loop in Django templates
- In a Django form, how do I make a field readonly (or disabled) so that it cannot be edited?
- Can I access constants in settings.py from templates in Django?
- How to define two fields “unique” as couple
- How to concatenate strings in django templates?
- Django: How do I redirect a post and pass on the post data
- Django Cookies, how can I set them?
- How to express a One-To-Many relationship in Django?
- Django – after login, redirect user to his custom page –> mysite.com/username
- How can I change the default Django date template format?
- How to filter empty or NULL names in a QuerySet?
- How do I get Django Admin to delete files when I remove an object from the database/model?
- Override default queryset in Django admin
- Django form field choices, adding an attribute
- How can I restrict Django’s GenericForeignKey to a list of models?
- Django accessing ManyToMany fields from post_save signal
- What’s the recommended approach to resetting migration history using Django South?
- In a django model custom save() method, how should you identify a new object?
- Django: Set foreign key using integer?
- Django File upload size limit
- How do you serialize a model instance in Django?
- Limit foreign key choices in select in an inline form in admin
- AngularJS + Django Rest Framework + CORS ( CSRF Cookie not showing up in client )
- Fighting client-side caching in Django
- Create Custom Error Messages with Model Forms
- Django Static Files Development
- Django Static files 404
- Creating a model and related models with Inline formsets
- Why does django’s prefetch_related() only work with all() and not filter()?
- Using Django auth UserAdmin for a custom user model
- How can I list urlpatterns (endpoints) on Django?
- Use variable as dictionary key in Django template
- Django Broken pipe in Debug mode
- CSRF Failed: CSRF token missing or incorrect
- Django model instances primary keys do not reset to 1 after all instances are deleted
- How do you filter a nested serializer in Django Rest Framework?
- Aggregate (and other annotated) fields in Django Rest Framework serializers
- Django CreateView: How to perform action upon save
- how to show datepicker calendar on datefield
- Multiple images per Model
- Accelerate bulk insert using Django’s ORM?
- django.db.utils.IntegrityError: UNIQUE constraint failed: rango_category__new.slug
- Django: implementing JOIN using Django ORM?
- How to assign currently logged in user as default value for a model field?
- How to cURL an Authenticated Django App?
- Django – Static file not found
- Pass request context to serializer from Viewset in Django Rest Framework
- How to simplify migrations in Django 1.7?
- How do I display the value of a Django form field in a template?
- Can Django automatically create a related one-to-one model?