remove types index specification because it is not compatible with later versions of mongodb

This commit is contained in:
Jonathan Math 2020-11-06 14:42:58 +07:00
parent c452728f82
commit 03163a06b4

View file

@ -69,8 +69,7 @@ class MUserFeedNotification(mongo.Document):
'collection': 'notifications',
'indexes': ['feed_id',
{'fields': ['user_id', 'feed_id'],
'unique': True,
'types': False,
'unique': True
}],
'allow_inheritance': False,
}