If I understand correctly, then the solution would be to do something of this sort: (pardon the formatting)
if value: {{value}} else: {{default_value}} Something of that sort *should* work, although I am not entirely sure. On Mon, Dec 13, 2010 at 4:00 AM, PyMan <claudio.marino...@rsoft.it> wrote: > Maybe I'm wrong but I remember about a setting whose I don't remember > the name...acting like a default for default_if_none where > default_if_none was not used. > > Example: > {{ value }} <-- I forgot about using the "default_if_none" filter > > If the setting I'm talking about is defined then its value is used > instead of "None" as string, if value is None. > > I haven't found any information about that setting in the current > documentation. If I really used that setting in the past, it was in > the 0.95/0.96 version. > > Thank you for your help. > > P.S. If the setting doesn't exist, how can I achive the same result > without using "default_if_none" everywhere? > > -- > 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<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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.