Ticket #4640: django_stringfilter_doc.patch
File django_stringfilter_doc.patch, 555 bytes (added by , 17 years ago) |
---|
-
templates_python.txt
673 673 argument, you should use the included decorator ``stringfilter`` which will convert 674 674 an object to it's string value before being passed to your function:: 675 675 676 from django import template676 from django.template.defaultfilters import stringfilter 677 677 678 @ template.stringfilter678 @stringfilter 679 679 def lower(value): 680 680 return value.lower() 681 681