Do tags not support the literals None, False, or True? Why would numbers and strings be supported, but not these? It is possible to pass these as variables into the context (even in a context processor) as {'None': None, 'True': True, 'False': False} and it's possible that someone may be using variables named like this with completely different values, but it seems odd to me that they're just not supported out of the box.
If I try passing a None into a tag, I get a "VariableDoesNotExist" error ("Failed lookup for key [None] in…") Furthermore, it seems really simple to support by adding something like this into the top of template.Variable.__init__ (just above the try) literals = {'None': None, 'False': False, 'True': True} if var in literals: self.literal = literals[var] return but that wouldn't be backwards compatible for someone who may be passing confusing/bizarro variables into their context, such as {'None': 0} -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.