Skip to content

Commit 2f49872

Browse files
committed
Sessions should have allow_inheritance off for pre 0.8 mongoengine
1 parent 17dc6dc commit 2f49872

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flask_mongoengine/sessions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class DBSession(db.Document):
3636
data = db.DictField()
3737
expiration = db.DateTimeField()
3838
meta = {
39+
'allow_inheritance': False,
3940
'collection': collection,
4041
'indexes': [{'fields': ['expiration'],
4142
'expireAfterSeconds': 60 * 60 * 24 * 7 * 31}]

0 commit comments

Comments
 (0)