diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-07-12 13:23:11 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-07-12 13:23:11 +0000 |
| commit | ab368c9c751c75d63d32894906d03c8052db6cc6 (patch) | |
| tree | 233a183cd4697d1a8519731ac19fe80516fd2bd0 /docs/templates_python.txt | |
| parent | 6cf7a4ac6574ebed3465215c42360ea1f8e42c70 (diff) | |
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
Diffstat (limited to 'docs/templates_python.txt')
| -rw-r--r-- | docs/templates_python.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/templates_python.txt b/docs/templates_python.txt index 821f40fd8d..117656762f 100644 --- a/docs/templates_python.txt +++ b/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() |
