Change: update root modified timestamp on version changes (#13170)

This commit is contained in:
shamoon authored and GitHub committed 2026-07-20 15:45:24 +00:00
1 parent 2b784e709b
commit ff609c2987
4 files changed
+22

No files matched your search

+5
View File
@@ -621,6 +621,11 @@ class ConsumerPlugin(
else:
original_document.save()
# Adding a version changes the effective document, so update root modified
Document.objects.filter(pk=root_doc.pk).update(
modified=timezone.now(),
)
# Create a log entry for the version addition, if enabled
if settings.AUDIT_LOG_ENABLED:
from auditlog.models import ( # type: ignore[import-untyped]