Skip to content

Commit

Permalink
Merge pull request #78 from Vacasa/bug/issue-77-update-should-save-once
Browse files Browse the repository at this point in the history
Fix double-save issue on partialupdatemixin
  • Loading branch information
ddobson authored Aug 28, 2019
2 parents 3e44f4c + f9b2a26 commit 4536c78
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drf_jsonapi/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ def partial_update(self, request, *args, **kwargs):
request.data["data"]["relationships"], resource, request
)

resource.save()

self.document.instance.data = serializer.data

return Response(self.document.data)
Expand Down

0 comments on commit 4536c78

Please sign in to comment.