Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Bharadwaj committed Jan 20, 2023
1 parent 95d46a5 commit 9b951f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions journalism_workflow/load_sample_data.py
Expand Up @@ -22,8 +22,7 @@ def load(workflow_version):
worker, _ = Worker.objects.update_or_create(user=user)
project_admins, created = Group.objects.get_or_create(
name='project_admins')
if created:
user.groups.add(project_admins)
user.groups.add(project_admins)

# Grant the worker the desired certifications.
for certification_slug, certification_role in certifications:
Expand Down
3 changes: 1 addition & 2 deletions simple_workflow/load_sample_data.py
Expand Up @@ -23,5 +23,4 @@ def load(workflow_version):
Worker.objects.create(user=user)
project_admins, created = Group.objects.get_or_create(
name='project_admins')
if created:
user.groups.add(project_admins)
user.groups.add(project_admins)

0 comments on commit 9b951f7

Please sign in to comment.