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})"
|
return f"{self.name} ({self.type})"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
|
||||||
db_table = "flag"
|
db_table = "flag"
|
||||||
ordering = ("name",)
|
ordering = ("name",)
|
||||||
|
|
||||||
@ -193,7 +192,6 @@ class Member(models.Model):
|
|||||||
return f"{self.account_name}"
|
return f"{self.account_name}"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
|
||||||
db_table = "members"
|
db_table = "members"
|
||||||
ordering = ("first_name", "last_name")
|
ordering = ("first_name", "last_name")
|
||||||
indexes = [
|
indexes = [
|
||||||
@ -231,11 +229,10 @@ class MemberFlag(models.Model):
|
|||||||
return f"{self.member} - {self.flag}"
|
return f"{self.member} - {self.flag}"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
|
||||||
db_table = "memberflag"
|
db_table = "memberflag"
|
||||||
constraints = [
|
constraints = [
|
||||||
models.UniqueConstraint(
|
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