Add a public rights page to view which permissions are granted to which role, update Font Awesome to 5.13
This commit is contained in:
parent
b0f6ec1061
commit
a83ab4bf85
8 changed files with 175 additions and 29 deletions
|
|
@ -305,14 +305,15 @@ class RolePermissions(models.Model):
|
|||
"""
|
||||
Permissions associated with a Role
|
||||
"""
|
||||
role = models.ForeignKey(
|
||||
role = models.OneToOneField(
|
||||
Role,
|
||||
on_delete=models.PROTECT,
|
||||
related_name='+',
|
||||
related_name='permissions',
|
||||
verbose_name=_('role'),
|
||||
)
|
||||
permissions = models.ManyToManyField(
|
||||
Permission,
|
||||
verbose_name=_("permissions"),
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue