From bfefa840eaae1d1ac1d1c65ae5d55e6248ed502d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 28 Feb 2022 17:09:48 -0500 Subject: [PATCH] membershipworks: Set models as managed --- membershipworks/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/membershipworks/models.py b/membershipworks/models.py index 6a5af2a..6c129e2 100644 --- a/membershipworks/models.py +++ b/membershipworks/models.py @@ -15,7 +15,6 @@ class Flag(models.Model): return f"{self.name} ({self.type})" class Meta: - managed = False db_table = "flag" ordering = ("name",) @@ -193,7 +192,6 @@ class Member(models.Model): return f"{self.account_name}" class Meta: - managed = False db_table = "members" ordering = ("first_name", "last_name") indexes = [ @@ -231,11 +229,10 @@ class MemberFlag(models.Model): return f"{self.member} - {self.flag}" class Meta: - managed = False db_table = "memberflag" constraints = [ models.UniqueConstraint( - fields=["member", "flag_id"], name="unique_member_flag" + fields=["member", "flag"], name="unique_member_flag" ) ]