mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-28 04:12:10 +01:00
Merge pull request #21555 from ITJamie/patch-3
Add changelog message documentation in custom scripts
This commit is contained in:
@@ -215,6 +215,7 @@ if obj.pk and hasattr(obj, 'snapshot'):
|
|||||||
obj.snapshot()
|
obj.snapshot()
|
||||||
|
|
||||||
obj.property = "New Value"
|
obj.property = "New Value"
|
||||||
|
obj._changelog_message = 'Example Message Text' # Optional
|
||||||
obj.full_clean()
|
obj.full_clean()
|
||||||
obj.save()
|
obj.save()
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user