Private
Public Access
1
0

added image attach buttons to edit and workflow

This commit is contained in:
Sander Roosendaal
2018-01-23 15:10:17 +01:00
parent 22cba46f3b
commit ed56a4179a
6 changed files with 22 additions and 39 deletions

View File

@@ -8894,9 +8894,13 @@ def workout_uploadimage_view(request,id):
filename = path_and_filename,
width=width,height=height)
i.save()
url = reverse(r.defaultlandingpage,
kwargs = {'id':id})
return HttpResponseRedirect(url)
if is_ajax:
return JSONResponse({'result':1,'url':0})
else:
return HttpResponseRedirect(url)
else:
messages.error(request,'Something went wrong - no file attached')
url = reverse(workout_uploadimage_view,