Browse files

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

…n to move stringfilter into django.template.__init__ introduces a circular import problem.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6cf7a4a commit ab368c9c751c75d63d32894906d03c8052db6cc6 @freakboy3742 freakboy3742 committed Jul 12, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/templates_python.txt
@@ -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()

0 comments on commit ab368c9

Please sign in to comment.