added image attach buttons to edit and workflow
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user