Sfoglia il codice sorgente

Add changelog message documentation in custom scripts

Add changelog message documentation in custom scripts
Jamie (Bear) Murphy 2 settimane fa
parent
commit
1be917fb90
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      docs/customization/custom-scripts.md

+ 1 - 0
docs/customization/custom-scripts.md

@@ -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()
 ```