1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 07:52:23 +00:00

Added indexes for Membership

This commit is contained in:
Benjamin Graillot 2020-03-11 13:51:26 +01:00
parent c8f5451ea4
commit b17ff59984

View File

@ -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):