1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-11-24 23:47:49 +00:00

!fixup make domain access list names unique

This commit is contained in:
Ethan Paul 2020-02-24 23:22:49 -05:00
parent 96c595147e
commit 822287ad3c

View File

@ -112,7 +112,7 @@ class DomainAccessList(KeyoskBaseModel):
class Meta: # pylint: disable=missing-docstring,too-few-public-methods class Meta: # pylint: disable=missing-docstring,too-few-public-methods
table_name = "domain_acl" table_name = "domain_acl"
name = peewee.CharField(null=False) name = peewee.CharField(null=False, unique=True)
domain = peewee.ForeignKeyField(Domain, backref="access_lists") domain = peewee.ForeignKeyField(Domain, backref="access_lists")
@staticmethod @staticmethod