I am not sure whether this is a bug or a feature, an empty dict is
plural?

>>> from django.template import Template, Context
>>> t = Template("{{ d|pluralize }}")
>>> empty = Context({"d" : dict()})
>>> t.render(empty)
u's'
>>> one = Context({"d" : dict(a=1)})
>>> t.render(one)
u''
>>> two = Context({"d" : dict(a=1, b=2)})
>>> t.render(two)
u's'

EuGeNe -- http://www.3kwa.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to