From d028c16966dc090b47d72e1e6d19436962fff542 Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Fri, 24 Nov 2017 17:40:10 +0100 Subject: [PATCH] add teamtasks in bootstrap script --- .../management/commands/bootstrap-devsite.py | 56 ++++++++++++++++++- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/src/utils/management/commands/bootstrap-devsite.py b/src/utils/management/commands/bootstrap-devsite.py index 7ddb790c..d1bf84d1 100644 --- a/src/utils/management/commands/bootstrap-devsite.py +++ b/src/utils/management/commands/bootstrap-devsite.py @@ -20,7 +20,12 @@ from program.models import ( from tickets.models import ( TicketType ) -from teams.models import Team, TeamArea, TeamMember +from teams.models import ( + Team, + TeamTask, + TeamArea, + TeamMember +) from django.contrib.auth.models import User from allauth.account.models import EmailAddress from django.utils.text import slugify @@ -295,8 +300,6 @@ class Command(BaseCommand): slug='{}'.format(slugify(name)), ) - - for camp in [camp2016, camp2017, camp2018]: year = camp.camp.lower.year @@ -1406,6 +1409,53 @@ Please note that sleeping in the parking lot is not permitted. If you want to sl area=bar_area ) + self.output("Creating TeamTasks for {}...".format(year)) + TeamTask.objects.create( + team=noc_team, + name="Setup private networks", + description="All the private networks need to be setup" + ) + TeamTask.objects.create( + team=noc_team, + name="Setup public networks", + description="All the public networks need to be setup" + ) + TeamTask.objects.create( + team=noc_team, + name="Deploy access points", + description="All access points need to be deployed" + ) + TeamTask.objects.create( + team=noc_team, + name="Deploy fiber cables", + description="We need the fiber deployed where necessary" + ) + TeamTask.objects.create( + team=bar_team, + name="List of booze", + description="A list of the different booze we need to have in the bar durng bornhack" + ) + TeamTask.objects.create( + team=bar_team, + name="Chairs", + description="We need a solution for chairs" + ) + TeamTask.objects.create( + team=bar_team, + name="Taps", + description="Taps must be ordered" + ) + TeamTask.objects.create( + team=bar_team, + name="Coffee", + description="We need to get some coffee for our coffee machine" + ) + TeamTask.objects.create( + team=bar_team, + name="Ice", + description="We need ice cubes and crushed ice in the bar" + ) + self.output("Setting team members for {}...".format(year)) TeamMember.objects.create( team=noc_team,