1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 18:08:21 +02:00

Permissions can be permanent

This commit is contained in:
Yohann D'ANELLO
2020-05-07 21:14:36 +02:00
parent 0776ed416c
commit 4108babdb4
6 changed files with 453 additions and 255 deletions

View File

@ -170,6 +170,12 @@ class Permission(models.Model):
verbose_name=_("field"),
)
permanent = models.BooleanField(
default=False,
help_text=_("Tells if the permission should be granted even if the membership of the user is expired."),
verbose_name=_("permanent"),
)
description = models.CharField(
max_length=255,
blank=True,