form = JournalForm(initial={'tank': 123})
Here is what the above code is Doing:
1. We’re creating a new instance of the JournalForm class.
2. We’re passing in an initial value for the tank field.
3. We’re assigning the form to the variable named form.