change permissions name unique

This commit is contained in:
2025-06-08 08:29:46 +03:30
parent 5414c6c1dc
commit e0355fff9a
6 changed files with 72 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ class Page(BaseModel):
class Permissions(BaseModel):
""" permission level of users """
name = models.CharField(max_length=50)
name = models.CharField(max_length=50, unique=True)
description = models.TextField(max_length=500)
category_choices = (
('api', 'Api'),