Permissions are strings, not integers
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
ea8007aa07
commit
7498677bbd
|
@ -1,4 +1,4 @@
|
||||||
# Generated by Django 5.0.3 on 2024-04-27 06:48
|
# Generated by Django 5.0.3 on 2024-04-27 07:00
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
@ -30,7 +30,7 @@ class Migration(migrations.Migration):
|
||||||
("name", models.CharField(max_length=255, verbose_name="name")),
|
("name", models.CharField(max_length=255, verbose_name="name")),
|
||||||
(
|
(
|
||||||
"read_access",
|
"read_access",
|
||||||
models.PositiveSmallIntegerField(
|
models.CharField(
|
||||||
choices=[
|
choices=[
|
||||||
("anonymous", "Everyone, including anonymous users"),
|
("anonymous", "Everyone, including anonymous users"),
|
||||||
("authenticated", "Authenticated users"),
|
("authenticated", "Authenticated users"),
|
||||||
|
@ -53,12 +53,13 @@ class Migration(migrations.Migration):
|
||||||
),
|
),
|
||||||
("admin", "Admin users"),
|
("admin", "Admin users"),
|
||||||
],
|
],
|
||||||
|
max_length=16,
|
||||||
verbose_name="read permission",
|
verbose_name="read permission",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
"write_access",
|
"write_access",
|
||||||
models.PositiveSmallIntegerField(
|
models.CharField(
|
||||||
choices=[
|
choices=[
|
||||||
("anonymous", "Everyone, including anonymous users"),
|
("anonymous", "Everyone, including anonymous users"),
|
||||||
("authenticated", "Authenticated users"),
|
("authenticated", "Authenticated users"),
|
||||||
|
@ -81,6 +82,7 @@ class Migration(migrations.Migration):
|
||||||
),
|
),
|
||||||
("admin", "Admin users"),
|
("admin", "Admin users"),
|
||||||
],
|
],
|
||||||
|
max_length=16,
|
||||||
verbose_name="write permission",
|
verbose_name="write permission",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -13,12 +13,14 @@ class Channel(models.Model):
|
||||||
verbose_name=_("name"),
|
verbose_name=_("name"),
|
||||||
)
|
)
|
||||||
|
|
||||||
read_access = models.PositiveSmallIntegerField(
|
read_access = models.CharField(
|
||||||
|
max_length=16,
|
||||||
verbose_name=_("read permission"),
|
verbose_name=_("read permission"),
|
||||||
choices=PermissionType,
|
choices=PermissionType,
|
||||||
)
|
)
|
||||||
|
|
||||||
write_access = models.PositiveSmallIntegerField(
|
write_access = models.CharField(
|
||||||
|
max_length=16,
|
||||||
verbose_name=_("write permission"),
|
verbose_name=_("write permission"),
|
||||||
choices=PermissionType,
|
choices=PermissionType,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue