mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-03 09:32:17 +00:00
Fix: only update modified field in notes actions (#12750)
This commit is contained in:
@@ -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