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,