Skip to content

Commit

Permalink
small_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalTiwary committed Aug 24, 2023
1 parent 49352fc commit e1a8c61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/tasks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,7 @@ def partial_update(self, request, pk=None):
request.data["result"], annotation_obj.task
)
annotation_obj.save(update_fields=["result"])
request.data["result"] = annotation_obj.result
annotation_response = super().partial_update(request)
annotation_id = annotation_response.data["id"]
annotation = Annotation.objects.get(pk=annotation_id)
Expand Down Expand Up @@ -1492,6 +1493,7 @@ def partial_update(self, request, pk=None):
request.data["result"], annotation_obj.task
)
annotation_obj.save(update_fields=["result"])
request.data["result"] = annotation_obj.result
annotation_response = super().partial_update(request)
annotation_id = annotation_response.data["id"]
annotation = Annotation.objects.get(pk=annotation_id)
Expand Down Expand Up @@ -1648,6 +1650,7 @@ def partial_update(self, request, pk=None):
request.data["result"], annotation_obj.task
)
annotation_obj.save(update_fields=["result"])
request.data["result"] = annotation_obj.result
annotation_response = super().partial_update(request)
task = annotation.task

Expand Down

0 comments on commit e1a8c61

Please sign in to comment.