Django

Code

Ticket #4640: django_stringfilter_doc.patch

File django_stringfilter_doc.patch, 0.5 kB (added by trentm@gmail.com, 2 years ago)

patch to docs to correct "stringfilter" import

  • templates_python.txt

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