diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-01-20 12:20:19 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:20:59 +0100 |
commit | e084b2989a0abc2873e6cb13ae8fa6eb3fb842a8 (patch) | |
tree | 19370374adf39d41f59984cee0f3dd0d3b5034a4 /ishtar_common/forms.py | |
parent | 50269150c391f0702f33999342b519f911a8e45b (diff) | |
download | Ishtar-e084b2989a0abc2873e6cb13ae8fa6eb3fb842a8.tar.bz2 Ishtar-e084b2989a0abc2873e6cb13ae8fa6eb3fb842a8.zip |
Parcel form: fix bad "data" init
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r-- | ishtar_common/forms.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index aede44637..20658d2de 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -552,6 +552,8 @@ class FormSet(CustomForm, BaseFormSet): Returns whether or not the form was marked for deletion. If no data, set deletion to True """ + if not hasattr(form, "cleaned_data"): + return if form.cleaned_data.get(DELETION_FIELD_NAME, False): return True if not form.cleaned_data or not [ |