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

This commit is contained in:
shamoon
2026-07-20 15:45:24 +00:00
committed by GitHub
parent 2b784e709b
commit ff609c2987
4 changed files with 22 additions and 0 deletions
+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]