Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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: http://code.djangoproject.com/svn/django/trunk@5667 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ab368c9c751c75d63d32894906d03c8052db6cc6 1 parent 6cf7a4a
Russell Keith-Magee authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/templates_python.txt
4  docs/templates_python.txt
@@ -674,9 +674,9 @@ If you are writing a template filter which only expects a string as the first
674 674
 argument, you should use the included decorator ``stringfilter`` which will convert
675 675
 an object to it's string value before being passed to your function::
676 676
 
677  
-    from django import template
  677
+    from django.template.defaultfilters import stringfilter
678 678
 
679  
-    @template.stringfilter
  679
+    @stringfilter
680 680
     def lower(value):
681 681
         return value.lower()
682 682
 

0 notes on commit ab368c9

Please sign in to comment.
Something went wrong with that request. Please try again.