Opened 12 years ago

Closed 12 years ago

#3816 closed (fixed)

typo in Sessions docs

Reported by: jon austin <jon.i.austin@…> Owned by: Jacob
Component: Documentation Version: master
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



found a small type in the sessions docs sample code (

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/ 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 Changed 12 years ago by Chris Beaven

Triage Stage: UnreviewedReady for checkin

comment:2 Changed 12 years ago by Adrian Holovaty

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