Ticket #4640: django_stringfilter_doc.patch

File django_stringfilter_doc.patch, 555 bytes (added by trentm@…, 17 years ago)

patch to docs to correct "stringfilter" import

  • templates_python.txt

    673673argument, you should use the included decorator ``stringfilter`` which will convert
    674674an object to it's string value before being passed to your function::
    676     from django import template
     676    from django.template.defaultfilters import stringfilter
    678     @template.stringfilter
     678    @stringfilter
    679679    def lower(value):
    680680        return value.lower()
Back to Top