mirror of https://github.com/django/django.git
Fixed #3816 -- Fixed typo in docs/sessions.txt. Thanks, jon austin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
796b2304f3
commit
293d6cf284
|
@ -158,7 +158,7 @@ is defined in ``django/contrib/sessions/models.py``. Because it's a normal
|
||||||
model, you can access sessions using the normal Django database API::
|
model, you can access sessions using the normal Django database API::
|
||||||
|
|
||||||
>>> from django.contrib.sessions.models import Session
|
>>> from django.contrib.sessions.models import Session
|
||||||
>>> s = Session.objects.get_object(pk='2b1189a188b44ad18c35e113ac6ceead')
|
>>> s = Session.objects.get(pk='2b1189a188b44ad18c35e113ac6ceead')
|
||||||
>>> s.expire_date
|
>>> s.expire_date
|
||||||
datetime.datetime(2005, 8, 20, 13, 35, 12)
|
datetime.datetime(2005, 8, 20, 13, 35, 12)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue