Try this way

This commit is contained in:
shamoon
2026-02-10 21:15:33 -08:00
parent 1a47f3801f
commit 5a0a8a58b3
2 changed files with 1 additions and 3 deletions

View File

@@ -501,7 +501,7 @@ class ConsumerPlugin(
pk=self.input_doc.root_document_id,
)
self.log.debug("Saving record for updated version to database")
original_document.pk = None
setattr(original_document, "pk", None)
original_document.root_document = root_doc
file_for_checksum = (
self.unmodified_original

View File

@@ -161,8 +161,6 @@ class Document(SoftDeleteModel, ModelWithOwner):
from django.db.models.query import QuerySet
versions: "QuerySet[Document]"
pk: int | None
id: int | None
correspondent = models.ForeignKey(
Correspondent,