control one permission with same name for each page

This commit is contained in:
2025-06-08 14:58:19 +03:30
parent 3e2375582c
commit 7cd3f992ae
4 changed files with 39 additions and 1 deletions

View File

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