mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01: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:
parent
01af725d79
commit
99f260225a
3 changed files with 34 additions and 5 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue