Added the "get_decoded" method to the MongoSession class (#216)

This commit is contained in:
Ross Lawley 2013-01-28 14:12:47 +00:00
parent 03d3c26a99
commit 8c1f8e54cd
4 changed files with 6 additions and 3 deletions

View File

@ -139,3 +139,4 @@ that much better:
* Gustavo Gawryszewski
* Max Countryman
* caitifbrito
* lcya86 刘春洋

View File

@ -44,6 +44,7 @@ Changes in 0.8.X
- Added Django Group and Permission (#142)
- Added Doc class and pk to Validation messages (#69)
- Fixed Documents deleted via a queryset don't call any signals (#105)
- Added the "get_decoded" method to the MongoSession class (#216)
Changes in 0.7.9
================

View File

@ -25,6 +25,7 @@ MONGOENGINE_SESSION_DATA_ENCODE = getattr(
settings, 'MONGOENGINE_SESSION_DATA_ENCODE',
True)
class MongoSession(Document):
session_key = fields.StringField(primary_key=True, max_length=40)
session_data = fields.StringField() if MONGOENGINE_SESSION_DATA_ENCODE \