From 56c05e039c911e526478e5b028feb6e4ef1273e6 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 22 Jun 2020 17:54:06 +0200 Subject: [PATCH] add content team in bootstrap script, and create teams before adding content --- .../management/commands/bootstrap-devsite.py | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/utils/management/commands/bootstrap-devsite.py b/src/utils/management/commands/bootstrap-devsite.py index 03e22b52..cd44b80b 100644 --- a/src/utils/management/commands/bootstrap-devsite.py +++ b/src/utils/management/commands/bootstrap-devsite.py @@ -1179,6 +1179,13 @@ class Command(BaseCommand): camp=camp, permission_set="sanitationteam_permission", ) + teams["content"] = Team.objects.create( + name="Content", + description="The Content Team handles stuff on the program", + camp=camp, + mailing_list="content@example.com", + permission_set="contentteam_permission", + ) return teams @@ -1640,6 +1647,14 @@ class Command(BaseCommand): self.create_camp_news(camp) + teams = self.create_camp_teams(camp) + + self.create_camp_team_tasks(camp, teams) + + team_memberships = self.create_camp_team_memberships(camp, teams, users) + + self.create_camp_team_shifts(camp, teams, team_memberships) + self.create_camp_cfp(camp) self.create_camp_proposals(camp, event_types) @@ -1673,14 +1688,6 @@ class Command(BaseCommand): self.create_camp_villages(camp, users) - teams = self.create_camp_teams(camp) - - self.create_camp_team_tasks(camp, teams) - - team_memberships = self.create_camp_team_memberships(camp, teams, users) - - self.create_camp_team_shifts(camp, teams, team_memberships) - facility_types = self.create_facility_types( camp, teams, quickfeedback_options )