mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-16 00:19:32 -06:00
typing stuff
This commit is contained in:
@@ -884,7 +884,9 @@ class DocumentViewSet(
|
||||
self.perform_update(serializer)
|
||||
|
||||
if content_updated and content_doc.id != root_doc.id:
|
||||
content_doc.content = updated_content
|
||||
content_doc.content = (
|
||||
str(updated_content) if updated_content is not None else ""
|
||||
)
|
||||
content_doc.save(update_fields=["content", "modified"])
|
||||
|
||||
if getattr(root_doc, "_prefetched_objects_cache", None):
|
||||
|
||||
Reference in New Issue
Block a user