Update mongoengine/django/sessions.py

added the "get_decoded" method to the MongoSession class
This commit is contained in:
lcya86 2013-01-17 15:31:27 +08:00
parent e508625935
commit 17eeeb7536

View File

@ -34,6 +34,9 @@ class MongoSession(Document):
meta = {'collection': MONGOENGINE_SESSION_COLLECTION,
'db_alias': MONGOENGINE_SESSION_DB_ALIAS,
'allow_inheritance': False}
def get_decoded(self):
return SessionStore().decode(self.session_data)
class SessionStore(SessionBase):