fix
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user