Bug fix in heightweight create
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Gregory Trullemans 2021-12-19 20:14:42 +01:00
parent 1ffac09c11
commit e4080de1d5
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ def heightweight_create_or_update(request, heightweightid=None, gymnast_id=None)
heightweight = get_object_or_404(HeightWeight, pk=heightweightid) heightweight = get_object_or_404(HeightWeight, pk=heightweightid)
data = {"gymnast_related": heightweight.gymnast} data = {"gymnast_related": heightweight.gymnast}
else: else:
mindstate = None heightweight = None
data = {} data = {}
if gymnast_id: if gymnast_id:
gymnast = get_object_or_404(Gymnast, pk=gymnast_id) gymnast = get_object_or_404(Gymnast, pk=gymnast_id)