UPDATE #98

Merged
xoliqberdiyev merged 2 commits from shaxob into main 2026-04-24 12:27:10 +00:00
3 changed files with 5 additions and 4 deletions
Showing only changes of commit c9d60acfc9 - Show all commits

View File

@@ -31,7 +31,7 @@ class PermissionToTab(AbstractBaseModel):
verbose_name_plural = _("Bo'lim uchun ruxsatnomalar")
class Permission(BaseModel):
class Permission(AbstractBaseModel):
name = models.CharField(max_length=200)
code = models.CharField(max_length=100, unique=True)
permission_tab = models.ManyToManyField(PermissionToTab, related_name='permissions')