From 88152776e35f1b706ad2e2b4bd31e3a3281a84aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sun, 5 Aug 2018 18:48:58 +0200 Subject: [PATCH] Include buildup and teardown in available shifts days. --- src/teams/views/shifts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/teams/views/shifts.py b/src/teams/views/shifts.py index 17d41bdd..0a3d3694 100644 --- a/src/teams/views/shifts.py +++ b/src/teams/views/shifts.py @@ -68,8 +68,8 @@ def date_choices(camp): choices = [] - current_date = camp.camp.lower.date() - while current_date != camp.camp.upper.date(): + current_date = camp.buildup.lower.date() + while current_date != camp.teardown.upper.date(): choices.append( ( current_date,