On Wed, Aug 05, 2009 at 04:34:49PM +1000, Malcolm Tredinnick wrote:
> since it returns a *new* queryset that you cannot save to anything in
> the template.
errr... What about:
{% with object.object_set.select_related as set %}
...
{% endwith %}
?
Also, correct me if I am wrong, but wouldn't it help here too?
{% for i in object.object_set.select_related %}
...
{% endfor %}
Or have I misunderstood how select_related works?
--
Brian May <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---