aboutsummaryrefslogtreecommitdiff
path: root/rrd/models.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-01-27 11:34:55 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-01-27 11:34:55 +0100
commitb96e71091f436a1433c7b8fa4723f8d06b830691 (patch)
tree975f86cb631832f26d6a7266570b925e446ec967 /rrd/models.py
parent1e974b185d2caff288d73356220e1096910f9b96 (diff)
Read / Write fields can be emptyHEADmaster
Diffstat (limited to 'rrd/models.py')
-rw-r--r--rrd/models.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/rrd/models.py b/rrd/models.py
index 2dc629a..7ccc89a 100644
--- a/rrd/models.py
+++ b/rrd/models.py
@@ -23,19 +23,23 @@ def _sanitize_path(path):
class ModelWithPerms(models.Model):
users_read = models.ManyToManyField(
amodels.User,
- related_name="%(class)s_read"
+ related_name="%(class)s_read",
+ blank=True,
)
users_write = models.ManyToManyField(
amodels.User,
- related_name="%(class)s_write"
+ related_name="%(class)s_write",
+ blank=True,
)
groups_read = models.ManyToManyField(
amodels.Group,
- related_name="%(class)s_read"
+ related_name="%(class)s_read",
+ blank=True,
)
groups_write = models.ManyToManyField(
amodels.Group,
- related_name="%(class)s_write"
+ related_name="%(class)s_write",
+ blank=True,
)
class Meta: