Private
Public Access
1
0

bugfix - rarely used error message lacked 'request' argument

This commit is contained in:
Sander Roosendaal
2017-12-17 08:39:15 +01:00
parent 9bab1d90a2
commit bb43995993

View File

@@ -9393,7 +9393,8 @@ def workout_upload_view(request,
if f is not None:
res = handle_uploaded_file(f)
else:
messages.error("Something went wrong - no file attached")
messages.error(request,
"Something went wrong - no file attached")
url = reverse(workout_upload_view)
if is_ajax:
return JSONResponse({'result':0,'url':0})