diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-12-14 16:33:07 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:49 +0200 |
commit | 409e953644149136e01a1b023dc51ed4a2819e94 (patch) | |
tree | 5c1dfaf5f819087762efd93599ecae64af198a6e /ishtar_common/forms.py | |
parent | d3626d38d74e2517ac014ed6ea6974033c2a6e15 (diff) | |
download | Ishtar-409e953644149136e01a1b023dc51ed4a2819e94.tar.bz2 Ishtar-409e953644149136e01a1b023dc51ed4a2819e94.zip |
Basket bulk update: propose slug on single edit, allow multi edit (refs #5225)
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r-- | ishtar_common/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index b92a80f42..d31febd95 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -1160,8 +1160,9 @@ class QAForm(CustomForm, ManageOldType): self.items = kwargs.pop("items") self.confirm = kwargs.pop("confirm") super(QAForm, self).__init__(*args, **kwargs) + len_items = len(self.items) for k in list(self.fields.keys()): - if self.MULTI and k in self.SINGLE_FIELDS: + if self.MULTI and len_items > 1 and k in self.SINGLE_FIELDS: self.fields.pop(k) continue if self.confirm: |