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:
Adrian Holovaty 2005-10-04 13:34:59 +00:00
parent da71528717
commit 6f07f717c0
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ every template automatic access to the current time, use something like this::
from django.core.template import Context from django.core.template import Context
import datetime import datetime
class TimeContext(template.Context): class TimeContext(Context):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
Context.__init__(self, *args, **kwargs) Context.__init__(self, *args, **kwargs)
self['current_time'] = datetime.datetime.now() self['current_time'] = datetime.datetime.now()