From b17ff59984844709bd69be53e19d61910d2371cd Mon Sep 17 00:00:00 2001 From: Benjamin Graillot Date: Wed, 11 Mar 2020 13:51:26 +0100 Subject: [PATCH] Added indexes for Membership --- apps/member/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/member/models.py b/apps/member/models.py index b596357f..5cdc4c77 100644 --- a/apps/member/models.py +++ b/apps/member/models.py @@ -153,6 +153,7 @@ class Membership(models.Model): class Meta: verbose_name = _('membership') verbose_name_plural = _('memberships') + indexes = [ models.Index(fields=['user']) ] # @receiver(post_save, sender=settings.AUTH_USER_MODEL) # def save_user_profile(instance, created, **_kwargs):