From a1c1e93ef79d323f5a4e120da46fa32afce3b661 Mon Sep 17 00:00:00 2001 From: "Andreas (@xAndy) Zimmermann" Date: Mon, 15 May 2023 16:31:55 +0200 Subject: [PATCH] fix: display text after shift draw --- shiftregister/fallback/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shiftregister/fallback/views.py b/shiftregister/fallback/views.py index 40d8d52..c232991 100644 --- a/shiftregister/fallback/views.py +++ b/shiftregister/fallback/views.py @@ -16,15 +16,15 @@ def my_fallback_shifts(request, team_member_id): team_member = get_object_or_404(TeamMember, pk=team_member_id) - after_draw = False + is_draw = False if request.method == "POST": form = EmptyForm(request.POST) if form.is_valid(): team_member.assign_random_shifts() - after_draw = True + is_draw = True context = { "team_member": team_member, "shifts": team_member.fallback_shifts.order_by("start_at").all(), - "after_draw": after_draw, + "is_draw": is_draw, } return render(request, "my_fallback_shifts.html", context)