Closes #3581: Introduce commit_default custom script attribute to not commit changes by default

This commit is contained in:
Jeremy Stretch
2019-10-09 15:16:50 -04:00
parent d402b6c3e5
commit 99f7cfcbd3
4 changed files with 15 additions and 2 deletions

View File

@@ -63,6 +63,14 @@ A list of field names indicating the order in which the form fields should appea
field_order = ['var1', 'var2', 'var3']
```
### `commit_default`
The checkbox to commit database changes when executing a script is checked by default. Set `commit_default` to False under the script's Meta class to leave this option unchecked by default.
```
commit_default = False
```
## Reading Data from Files
The Script class provides two convenience methods for reading data from files: