Ticket #15732: 15732_stringfilter_doc_example_r15965.diff
File 15732_stringfilter_doc_example_r15965.diff, 457 bytes (added by , 14 years ago) |
---|
-
docs/howto/custom-template-tags.txt
diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index 7dc6cce..d580eb3 100644
a b convert an object to its string value before being passed to your function:: 114 114 115 115 from django.template.defaultfilters import stringfilter 116 116 117 @register.filter 117 118 @stringfilter 118 119 def lower(value): 119 120 return value.lower()