mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-12 00:19:48 +00:00
Fix: update document modified time on note creation / deletion (#4374)
* Update document modified on add or delete notes * Add document extra endpoints info to docs
This commit is contained in:
@@ -522,6 +522,9 @@ class DocumentViewSet(
|
||||
)
|
||||
c.save()
|
||||
|
||||
doc.modified = timezone.now()
|
||||
doc.save()
|
||||
|
||||
from documents import index
|
||||
|
||||
index.add_or_update_document(self.get_object())
|
||||
@@ -545,6 +548,9 @@ class DocumentViewSet(
|
||||
note = Note.objects.get(id=int(request.GET.get("id")))
|
||||
note.delete()
|
||||
|
||||
doc.modified = timezone.now()
|
||||
doc.save()
|
||||
|
||||
from documents import index
|
||||
|
||||
index.add_or_update_document(self.get_object())
|
||||
|
Reference in New Issue
Block a user