mirror of https://github.com/django/django.git
Fixed #591 -- fixed typo in docs/templates_python.txt. Thanks, Boffbowsh
git-svn-id: http://code.djangoproject.com/svn/django/trunk@771 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
da71528717
commit
6f07f717c0
|
@ -267,7 +267,7 @@ every template automatic access to the current time, use something like this::
|
|||
|
||||
from django.core.template import Context
|
||||
import datetime
|
||||
class TimeContext(template.Context):
|
||||
class TimeContext(Context):
|
||||
def __init__(self, *args, **kwargs):
|
||||
Context.__init__(self, *args, **kwargs)
|
||||
self['current_time'] = datetime.datetime.now()
|
||||
|
|
Loading…
Reference in New Issue