]> git.parisson.com Git - teleforma.git/commitdiff
fix save
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 15 Jan 2026 19:48:42 +0000 (20:48 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 15 Jan 2026 19:48:42 +0000 (20:48 +0100)
teleforma/models/core.py

index 57441cc665c597696fea07cf121da1e496fd080a..b6289748d6b62da700f788aa35fd93fdf96e3852 100644 (file)
@@ -868,6 +868,7 @@ class Document(MediaBase):
                 private_document = private_documents[0]
             else:
                 private_document = DocumentPrivate(document=self, user=user)
+                private_document.save()
         if not private_document.file:
             private_document.file = self.file
             private_document.save()