Wrap get_coordinators auth.models Group call in a try block to avoid circular bootstrapping dependency issue that cropped up during Django 1.9 upgrade.
@@ -11,4 +11,7 @@ def get_coordinators():
# that query will fail as Group won't exist yet.
# The actual Coordinators group is established by a migration, so it is
# guaranteed to exist at runtime.
- return Group.objects.get_or_create(name=COORDINATOR_GROUP_NAME)
+ try:
+ return Group.objects.get(name=COORDINATOR_GROUP_NAME)
+ except:
+ pass
