mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-24 01:38:47 +02:00
Clarify optional changelog message in custom-scripts
Added comment to clarify optional changelog message.
This commit is contained in:
committed by
GitHub
parent
1be917fb90
commit
9b0c6110bb
@@ -215,7 +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'
|
obj._changelog_message = 'Example Message Text' # Optional
|
||||||
obj.full_clean()
|
obj.full_clean()
|
||||||
obj.save()
|
obj.save()
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user