From 2a4c1e3b2b716c0c8d3e278fc5ca2bbead13380b Mon Sep 17 00:00:00 2001 From: Tanner Prestegard <tanner.prestegard@ligo.org> Date: Fri, 20 Sep 2019 12:07:01 -0500 Subject: [PATCH] Bugfix migration which assigns permissions to groups --- gracedb/migrations/auth/0017_assign_permissions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gracedb/migrations/auth/0017_assign_permissions.py b/gracedb/migrations/auth/0017_assign_permissions.py index 317d2727a..3aa26471c 100644 --- a/gracedb/migrations/auth/0017_assign_permissions.py +++ b/gracedb/migrations/auth/0017_assign_permissions.py @@ -8,7 +8,6 @@ from django.contrib.auth.management import create_permissions # Group names -LVC = settings.LVC_GROUP EXECS = 'executives' ACCESS = 'access_managers' # control external access SUPEREVENTS = 'superevent_managers' # handle superevent creation/update @@ -16,6 +15,9 @@ H1_CONTROL = 'h1_control_room' L1_CONTROL = 'l1_control_room' V1_CONTROL = 'v1_control_room' EM_ADVOCATES = 'em_advocates' +# Previously, this was teaken from settings.LVC_GROUP, but that value has +# changed. So we have to hard-code it for past migrations +LVC = 'Communities:LSCVirgoLIGOGroupMembers' SUPEREVENT_PERMS = { # Label permissions -- GitLab