#7887: Allow empty constants in templates
-----------------------------+----------------------------------------------
Reporter: jcassee | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 1 |
-----------------------------+----------------------------------------------
The {{{Variable}}} class does not accept empty constants ("") in
templates. The error message is:
{{{
Could not find variable at start of ""
}}}
I traced the error to the {{{__init__}}} method of {{{FilterExpression}}}.
The attached diff fixes the error. I think some of the surrounding {{{if
<var>}}} statements should also be rewritten as {{{if <var> is not
None}}}, but the diff is restricted to fixing this bug.
--
Ticket URL: <http://code.djangoproject.com/ticket/7887>
Django Code <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
-~----------~----~----~----~------~----~------~--~---