!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
1 changed files with 1 additions and 1 deletions

View File

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