Author: russellm
Date: 2007-07-12 08:23:11 -0500 (Thu, 12 Jul 2007)
New Revision: 5667
Modified:
django/trunk/docs/templates_python.txt
Log:
Fixed #4640 -- Fixed import to stringfilter in docs. Proposed solution to move
stringfilter into django.template.__init__ introduces a circular import problem.
Modified: django/trunk/docs/templates_python.txt
===================================================================
--- django/trunk/docs/templates_python.txt 2007-07-12 12:55:28 UTC (rev
5666)
+++ django/trunk/docs/templates_python.txt 2007-07-12 13:23:11 UTC (rev
5667)
@@ -674,9 +674,9 @@
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()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---