I have a Decimal field that's blank=True, null=True, and NULL and 0.0 are distinct values. I'd like to do something different in a template depending on whether or not the value is None or not, but a standard {% if field %} treats 0.0 and None the same. Right now, I'm checking is None in the application and setting a separate value in the context, but is there a way of doing this directly on the field itself?
Thanks! -- -- Christophe Pettus x...@thebuild.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-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.