I am passing a model to a template that also has foreign keys to other models, so in my template I can do things like {% for a in a_list %} {% for b in a.b_model.all %} <p> this is b.name b.value b.date </p> {% endfor %} {% endfor %}
Is there some way to filter the b_model in the template or do I have to do this in views? For example only return b_model with date before Jan 2009 or with names beginning with c? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---