small fix
This commit is contained in:
parent
f172a91af5
commit
a9fdd7bef9
@ -216,7 +216,7 @@ def change_racer(request):
|
||||
dob = datetime.strptime(request.POST['date_of_birth'], "%Y-%m-%d").date()
|
||||
if dob > DEADLINE - relativedelta(years=18):
|
||||
return HttpResponse('{"reason":"Je potřeba mít 18 let v den závodu!"}', status=400, content_type='application/json')
|
||||
elif dob < DEADLINE - relativedelta(years):
|
||||
elif dob < DEADLINE - relativedelta(years=100):
|
||||
return HttpResponse('{"reason":"Opravdu vám je 100 let?"}', status=400, content_type='application/json')
|
||||
except:
|
||||
return HttpResponse('{"reason":"Špatný formát datu narození!"}', status=400, content_type='application/json')
|
||||
|
Loading…
x
Reference in New Issue
Block a user