From 03163a06b432cc698fd9124f7c88801ef5b97f98 Mon Sep 17 00:00:00 2001 From: Jonathan Math Date: Fri, 6 Nov 2020 14:42:58 +0700 Subject: [PATCH] remove types index specification because it is not compatible with later versions of mongodb --- apps/notifications/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/notifications/models.py b/apps/notifications/models.py index a794876e3..5b048bcde 100644 --- a/apps/notifications/models.py +++ b/apps/notifications/models.py @@ -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, }