fix(qrgen): fix "trim spaces" checkbox hold state over submits

Only use submitted data to populate form when in POST handler.
Otherwise default value for Boolean field gets clobbered.
This commit is contained in:
2022-02-15 13:28:49 +01:00
parent 81294de6d4
commit 84abf2705b
2 changed files with 6 additions and 9 deletions

View File

@@ -15,7 +15,7 @@
<div> {{ form.user_data }} </div>
<div class="input submit">
{{ form.trim_spaces(checked=True) }} {{ form.trim_spaces.label }}
{{ form.trim_spaces }} {{ form.trim_spaces.label }}
{{ form.submit }} </div>
</form>
</p>