Author: jacob
Date: 2007-02-23 14:50:53 -0600 (Fri, 23 Feb 2007)
New Revision: 4559

Modified:
   django/trunk/docs/templates_python.txt
Log:
Fixed documentation from [4558] to be correct.

Modified: django/trunk/docs/templates_python.txt
===================================================================
--- django/trunk/docs/templates_python.txt      2007-02-23 18:02:51 UTC (rev 
4558)
+++ django/trunk/docs/templates_python.txt      2007-02-23 20:50:53 UTC (rev 
4559)
@@ -657,12 +657,14 @@
 Template filters which expect strings
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 If you are writing a template filter which only expects a string as the first
-argument, you should use the included decorator ``to_str`` which will convert
+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
+
+    @template.stringfilter
     def lower(value):
        return value.lower()
-    lower = template.to_str(lower)
 
 Writing custom template tags
 ----------------------------


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to