mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-11 23:59:31 -06:00
More typing stuff
This commit is contained in:
@@ -511,7 +511,7 @@ class ConsumerPlugin(
|
||||
original_document.checksum = hashlib.md5(
|
||||
file_for_checksum.read_bytes(),
|
||||
).hexdigest()
|
||||
original_document.content = text
|
||||
original_document.content = ""
|
||||
original_document.page_count = page_count
|
||||
original_document.mime_type = mime_type
|
||||
original_document.original_filename = self.filename
|
||||
|
||||
@@ -161,6 +161,8 @@ 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