1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-08-05 14:49:22 +02:00

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:
Yohann D'ANELLO
2020-04-26 01:20:46 +02:00
parent b0f6ec1061
commit a83ab4bf85
8 changed files with 175 additions and 29 deletions

View File

@@ -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):