finally?
This commit is contained in:
parent
737ee14ea8
commit
eba4f4b353
@ -183,7 +183,7 @@ def login_status(request):
|
||||
@csrf_exempt
|
||||
def change_racer(request):
|
||||
try:
|
||||
racer = Racer.objects.get(request.POST['invoice_id'])
|
||||
racer = Racer.objects.get(invoice_id=request.POST['invoice_id']).pre
|
||||
if request.user != racer.profile.user:
|
||||
return HttpResponse('{"reason":"Nedostatečná práva!"}', status=400, content_type='application/json')
|
||||
if date.today() >= DEADLINE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user