Re: default_if_none as settings (??)
On 13 déc, 10:00, 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
You're possibly thinking of TEMPLATE_STRING_IF_INVALID:
http://docs.djangoproject.com/en/1.2/ref/settings/#template-string-if-invalid
but IIRC it won't work like this:
> If the setting I'm talking about is defined then its value is used
> instead of "None" as string, if value is None.
>
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home