diff --git a/src/design/plone/policy/patches/collective_volto_formsupport.py b/src/design/plone/policy/patches/collective_volto_formsupport.py index 376a8b9..b2df078 100644 --- a/src/design/plone/policy/patches/collective_volto_formsupport.py +++ b/src/design/plone/policy/patches/collective_volto_formsupport.py @@ -161,12 +161,10 @@ def store_data(self): if not res: raise BadRequest("Unable to store data") - data.update( - { - "waiting_list": self.submit_limit is not None - and -1 < self.submit_limit < self.count_data() - } + waiting_list = ( + self.submit_limit is not None and -1 < self.submit_limit < self.count_data() ) + data.update({"waiting_list": waiting_list}) return data