From e4080de1d5b4e7c234bbe69c9b6516f224727b88 Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Sun, 19 Dec 2021 20:14:42 +0100 Subject: [PATCH] Bug fix in heightweight create --- ultron/followup/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultron/followup/views.py b/ultron/followup/views.py index e1ba80bf5e..ff1fa60af1 100644 --- a/ultron/followup/views.py +++ b/ultron/followup/views.py @@ -364,7 +364,7 @@ def heightweight_create_or_update(request, heightweightid=None, gymnast_id=None) heightweight = get_object_or_404(HeightWeight, pk=heightweightid) data = {"gymnast_related": heightweight.gymnast} else: - mindstate = None + heightweight = None data = {} if gymnast_id: gymnast = get_object_or_404(Gymnast, pk=gymnast_id)