From 822287ad3cb808509f05b1fe5c3fa2a90210835c Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Mon, 24 Feb 2020 23:22:49 -0500 Subject: [PATCH] !fixup make domain access list names unique --- keyosk/database/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyosk/database/domain.py b/keyosk/database/domain.py index 92fcab4..aed384f 100644 --- a/keyosk/database/domain.py +++ b/keyosk/database/domain.py @@ -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