Hello,
First, If you use many relations it is very important to use JOIN
like: Example.objects.filter(first_object__second__third=something)
It is important to use select_related too (also in template!!)
example:
{% for item in example.objects.all %}
{{ item.related_object.value }}
{% endfor %}
TO
{% for item in example.objects.select_related %}
{{ item.related_object.value }}
{% endfor %}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---