From b70efa7223b3828519cce73b8104a739cf9a7dc3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 20 Jan 2022 12:20:19 +0100 Subject: Parcel form: fix bad "data" init --- ishtar_common/forms.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/forms.py') 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 [ -- cgit v1.2.3