Merge pull request #21555 from ITJamie/patch-3

Add changelog message documentation in custom scripts
This commit is contained in:
bctiemann 2026-03-12 08:29:19 -04:00 committed by GitHub
commit 2e4bce2dad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -215,6 +215,7 @@ if obj.pk and hasattr(obj, 'snapshot'):
obj.snapshot()
obj.property = "New Value"
obj._changelog_message = 'Example Message Text' # Optional
obj.full_clean()
obj.save()
```