#7251: Template if/ifequal/ifnotequal evaluate despite condition
----------------------------------------------------------+-----------------
Reporter: Joshua 'jag' Ginsberg <[email protected]> | Owner:
nobody
Status: reopened | Milestone:
Component: Template system | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------------------------+-----------------
Changes (by astopy):
* status: closed => reopened
* resolution: wontfix =>
Comment:
This should be fixed, because it really can cause problems. For example, I
have the following in a template:
{{{
{% if category %}
{% block backtolink %}<a href="{% url community.views.category
slug=category.slug page=frompage%}">← Back to "{{ category
}}"</a>{% endblock %}
{% endif %}
}}}
This raises NoReverseMatch when "category" is not set, so I'm now left
having to add extra cruft to my views to get around it.
--
Ticket URL: <http://code.djangoproject.com/ticket/7251#comment:7>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en.