Maintenance will be performed on,,, and on Tuesday 26 May 2020 starting at approximately 10am CDT. It is expected to take around 30 minutes and will involve a short period of downtime, around 5 minutes, towards the end of the maintenance period. Please address any questions, comments, or concerns to

Commit aae9bbc6 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Bugfix migration for populating raven_users group

parent 543ed965
......@@ -17,11 +17,12 @@ def add_users(apps, schema_editor):
# Get group
pg = Group.objects.get(name=GROUP_NAME)
# Get users
users = User.objects.filter(username__in=USERS)
# Users might not exist yet since they are populated from the LDAP
for username in USERS:
user, _ = User.objects.get_or_create(username=username)
# Add users
# Add user to group
def remove_users(apps, schema_editor):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment