membershipworks: Set models as managed

This commit is contained in:
Adam Goldsmith 2022-02-28 17:09:48 -05:00
parent 01b20cd844
commit bfefa840ea

View File

@ -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"
)
]