On 13 déc, 13:15, Brad Reardon <bradsq...@gmail.com> wrote: > If I understand correctly, then the solution would be to do something of > this sort: (pardon the formatting) > > if value: > {{value}} > else: > {{default_value}}
You may want to read about the builtin "default" and "default_if_none" template filters ;) -- 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.