Changed register_tag example in docs/templates_python.txt to be consistent with other examples. Thanks, EABinGA
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e205b96825
commit
c6ef1e0588
|
@ -611,7 +611,7 @@ Registering the tag
|
|||
Finally, use a ``register_tag`` call, as in ``register_filter`` above. Example::
|
||||
|
||||
from django.core import template
|
||||
template.register_tag('cycle', do_cycle)
|
||||
template.register_tag('current_time', do_current_time)
|
||||
|
||||
``register_tag`` takes two arguments:
|
||||
|
||||
|
|
Loading…
Reference in New Issue