mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
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:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user