.
This commit is contained in:
+2
-2
@@ -1162,8 +1162,8 @@ def question_save_annotation(request, pk):
|
|||||||
|
|
||||||
for n, annotation in enumerate(image_annotations):
|
for n, annotation in enumerate(image_annotations):
|
||||||
if annotation != "undefined":
|
if annotation != "undefined":
|
||||||
question.images[n].image_annotations = annotation
|
question_images[n].image_annotations = annotation
|
||||||
question.images[n].save()
|
question_images[n].save()
|
||||||
|
|
||||||
data = {"status": "success"}
|
data = {"status": "success"}
|
||||||
return JsonResponse(data, status=200)
|
return JsonResponse(data, status=200)
|
||||||
|
|||||||
Reference in New Issue
Block a user