{% for cat in client.categories.all %} {% ifequal cat category %} ... {% endif %} {% endfor %}
I don't really test it, but think it should work. But i think olso that it is not a good approch: If your goal is to do somthing only with cleints that belong to a specifique category (given to template) it will be better to filter client in your view, befor passing them to template, something like this: ... context = { 'category' : mycategory, 'client_set' : mycategory.entries.all() } ... further in your template you are sure that all client in client_set are associated with the given category. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---