membershipworks: Set models as managed
This commit is contained in:
parent
01b20cd844
commit
bfefa840ea
@ -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"
|
||||
)
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user