mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-11 23:59:31 -06:00
Try this way
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user