Add unique tags on permission masks

This commit is contained in:
Yohann D'ANELLO 2020-03-19 16:27:25 +01:00
parent 95315cdbe2
commit 022997f923
1 changed files with 2 additions and 0 deletions

View File

@ -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'),
)