mirror of
https://github.com/suitenumerique/docs.git
synced 2026-05-11 01:22:48 +02:00
We override the perform_create method of the DocumentViewSet to save the document with the id provided if a id is provided in the request. We do that because in offline mode we will create the document locally and we will need to save it with the id created locally to have our next requests to the server to be able to find the document with the id provided.