From 834796db7652d9e21941810d6d9e9eb8e49b4ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Mon, 24 Jan 2022 10:18:47 +0100 Subject: [PATCH] Repair `add_groups_and_permissions` --- .../scipost/management/commands/add_groups_and_permissions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scipost_django/scipost/management/commands/add_groups_and_permissions.py b/scipost_django/scipost/management/commands/add_groups_and_permissions.py index 5f496a4f2..e9c6a17d7 100644 --- a/scipost_django/scipost/management/commands/add_groups_and_permissions.py +++ b/scipost_django/scipost/management/commands/add_groups_and_permissions.py @@ -189,7 +189,8 @@ class Command(BaseCommand): content_type=content_type) can_manage_series, created = Permission.objects.get_or_create( codename='can_manage_series', - name='Can manage Series and Collections') + name='Can manage Series and Collections', + content_type=content_type) # Refereeing can_referee, created = Permission.objects.get_or_create( -- GitLab