Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-11-09 19:14:00 +01:00
parent 96a4b2ba10
commit 919e7f331b
4 changed files with 48 additions and 1 deletions

View File

@@ -136,7 +136,7 @@ def buy_trainingplan_view(request,id=0):
try:
targetid = cd['target']
target = TrainingTarget.objects.get(id=int(targetid))
except KeyError:
except (KeyError,ValueError):
try:
targetid = request.POST['target']