Merge branch 'patch-1' of https://github.com/lcya86/mongoengine into 0.8
This commit is contained in:
commit
03d3c26a99
@ -294,3 +294,9 @@ Alternatively, you can rename your collections eg ::
|
||||
else:
|
||||
print "Upgraded collection names"
|
||||
|
||||
|
||||
mongodb 1.8 > 2.0 +
|
||||
===================
|
||||
|
||||
Its been reported that indexes may need to be recreated to the newer version of indexes.
|
||||
To do this drop indexes and call ``ensure_indexes`` on each model.
|
||||
|
@ -35,6 +35,9 @@ class MongoSession(Document):
|
||||
'db_alias': MONGOENGINE_SESSION_DB_ALIAS,
|
||||
'allow_inheritance': False}
|
||||
|
||||
def get_decoded(self):
|
||||
return SessionStore().decode(self.session_data)
|
||||
|
||||
|
||||
class SessionStore(SessionBase):
|
||||
"""A MongoEngine-based session store for Django.
|
||||
|
Loading…
x
Reference in New Issue
Block a user