I have the following:
{% for group in user.groups.all %}
{{ group.name }}
{% ifequal group.name "subscribed" %}
<h1>I'm subscribed</h1>
{% else %}
{{ group.name }}
{% endifequal %}
{% endfor %}
The else part of the statement is not rendering. What am I missing?
Any help welcome.
Thanks,
Dave
--
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.