#6398: Add optional {% default %} clause to {% for %} template tag
--------------------------------------+-------------------------------------
Reporter: jezdez | Owner: jezdez
Status: reopened | Milestone: post-1.0
Component: Template system | Version: SVN
Resolution: | Keywords: easy-pickings
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Changes (by jodal):
* status: closed => reopened
* resolution: fixed =>
Comment:
As far as I can see, the conversion from 'default' to 'empty' in the patch
is not complete. At least, the tests seems broken, as they use "{% default
%}" and not "{% empty %}".
Check out the following in #9530:
* django/trunk/django/template/defaulttags.py lines 682 and 684 (and
optionally 'nodelist_default' at 685, 688-689), and
* django/trunk/tests/regressiontests/templates/tests.py lines 487-489.
--
Ticket URL: <http://code.djangoproject.com/ticket/6398#comment:26>
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
-~----------~----~----~----~------~----~------~--~---