mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-19 14:28:14 +00:00
Fix: only update modified field in notes actions (#12750)
This commit is contained in:
1 parent
978e54ab52
commit
8769dc894e
2 files changed
+42
-2
No files matched your search
@@ -1658,7 +1658,7 @@ class DocumentViewSet(
|
||||
)
|
||||
|
||||
doc.modified = timezone.now()
|
||||
doc.save()
|
||||
doc.save(update_fields=["modified"])
|
||||
|
||||
from documents.search import get_backend
|
||||
|
||||
@@ -1702,7 +1702,7 @@ class DocumentViewSet(
|
||||
note.delete()
|
||||
|
||||
doc.modified = timezone.now()
|
||||
doc.save()
|
||||
doc.save(update_fields=["modified"])
|
||||
|
||||
from documents.search import get_backend
|
||||
|
||||
|
||||
Reference in new issue
Block a user