Opened 18 years ago

Closed 18 years ago

#3816 closed (fixed)

typo in Sessions docs

Reported by: jon austin <jon.i.austin@…> Owned by: Jacob
Component: Documentation Version: dev
Severity: Keywords: session
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

hi,

found a small type in the sessions docs sample code (http://www.djangoproject.com/documentation/sessions/):

Session.objects.get_object should be Session.objects.get

Using sessions out of views

Internally, each session is just a normal Django model. The Session model is defined in django/contrib/sessions/models.py. Because it’s a normal model, you can access sessions using the normal Django database API:

>>> from django.contrib.sessions.models import Session
>>> s = Session.objects.get_object(pk='2b1189a188b44ad18c35e113ac6ceead')
>>> s.expire_date
datetime.datetime(2005, 8, 20, 13, 35, 12)

Change History (2)

comment:1 by Chris Beaven, 18 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [4825]) Fixed #3816 -- Fixed typo in docs/sessions.txt. Thanks, jon austin

Note: See TracTickets for help on using tickets.
Back to Top