Kaydet (Commit) ab368c9c authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Fixed #4640 -- Fixed import to stringfilter in docs. Proposed solution to move…

Fixed #4640 -- Fixed import to stringfilter in docs. Proposed solution to move stringfilter into django.template.__init__ introduces a circular import problem.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5667 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 6cf7a4ac
......@@ -674,9 +674,9 @@ If you are writing a template filter which only expects a string as the first
argument, you should use the included decorator ``stringfilter`` which will convert
an object to it's string value before being passed to your function::
from django import template
from django.template.defaultfilters import stringfilter
@template.stringfilter
@stringfilter
def lower(value):
return value.lower()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment