From b15f12f7e8e6d32ac16ff8ca1a460696018d22fa Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 12 Jul 2022 16:52:04 +0200 Subject: Account form: fix bad initialization --- CHANGES.md | 12 ++++++++++++ ishtar_common/forms_common.py | 2 ++ ishtar_common/version.py | 4 ++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 192491a6e..d0adb3952 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,18 @@ date: 2022-07-10 Ishtar changelog ================ +v3.2.3 - 2022-07-12 +-------------------- + +### Features ### + +- Update generated documentation + +### Bug fix ### + +- Preventive file: fix copy id +- Account form: fix bad initialization + v3.2.2 - 2022-07-11 -------------------- diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index de7b7785a..7f8394768 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -1108,6 +1108,8 @@ class ProfileForm(ManageOldType): class ProfileFormsetBase(FormSetWithDeleteSwitches): def clean(self): values = [] + if not getattr(self, "cleaned_data", None): + return for data in self.cleaned_data: if not data.get("profile_type", None): continue diff --git a/ishtar_common/version.py b/ishtar_common/version.py index ffae82c63..116df27d1 100644 --- a/ishtar_common/version.py +++ b/ishtar_common/version.py @@ -1,5 +1,5 @@ -# 3.2.2 -VERSION = (3, 2, 2) +# 3.2.3 +VERSION = (3, 2, 3) def get_version(): -- cgit v1.2.3