Skip to content

Commit

Permalink
Add superuser as location admin everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh authored and jonathan-s committed Feb 28, 2019
1 parent 7c7fc7e commit bd7b8fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/factory_apps/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ def house_admins(self, create, extracted, **kwargs):
# A list of groups were passed in, use them
for user in extracted:
self.house_admins.add(user)
else:
self.house_admins.add(SuperUserFactory())

# Always add superuser
self.house_admins.add(SuperUserFactory())

@factory.post_generation
def readonly_admins(self, create, extracted, **kwargs):
Expand Down

0 comments on commit bd7b8fd

Please sign in to comment.