mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 07:40:32 +02:00
Permissions are strings, not integers
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -13,12 +13,14 @@ class Channel(models.Model):
|
||||
verbose_name=_("name"),
|
||||
)
|
||||
|
||||
read_access = models.PositiveSmallIntegerField(
|
||||
read_access = models.CharField(
|
||||
max_length=16,
|
||||
verbose_name=_("read permission"),
|
||||
choices=PermissionType,
|
||||
)
|
||||
|
||||
write_access = models.PositiveSmallIntegerField(
|
||||
write_access = models.CharField(
|
||||
max_length=16,
|
||||
verbose_name=_("write permission"),
|
||||
choices=PermissionType,
|
||||
)
|
||||
|
Reference in New Issue
Block a user