mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-21 20:18:38 -06:00
Add changelog message documentation in custom scripts
Add changelog message documentation in custom scripts
This commit is contained in:
committed by
GitHub
parent
3b0b95c265
commit
1be917fb90
@@ -215,6 +215,7 @@ if obj.pk and hasattr(obj, 'snapshot'):
|
||||
obj.snapshot()
|
||||
|
||||
obj.property = "New Value"
|
||||
obj._changelog_message = 'Example Message Text'
|
||||
obj.full_clean()
|
||||
obj.save()
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user