From 022997f923e0e066f123b4a139aaa2ff9ee8712c Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 19 Mar 2020 16:27:25 +0100 Subject: [PATCH] Add unique tags on permission masks --- apps/permission/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/permission/models.py b/apps/permission/models.py index f333e377..62a1d0c3 100644 --- a/apps/permission/models.py +++ b/apps/permission/models.py @@ -52,11 +52,13 @@ class InstancedPermission: class PermissionMask(models.Model): rank = models.PositiveSmallIntegerField( + unique=True, verbose_name=_('rank'), ) description = models.CharField( max_length=255, + unique=True, verbose_name=_('description'), )