From 32dc78b4f75887dd9e26dcf7ba57a9ef69ae3290 Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Tue, 24 Oct 2023 17:30:07 +0200 Subject: [PATCH] [dev] costo dell'evento obbligatorio --- CHANGES.rst | 3 ++- src/design/plone/contenttypes/behaviors/evento.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index a4990368..e95313af 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 6.0.19 (unreleased) ------------------- -- Nothing changed yet. +- Set event tickets cost as required field + [pnicolli] 6.0.18 (2023-09-20) diff --git a/src/design/plone/contenttypes/behaviors/evento.py b/src/design/plone/contenttypes/behaviors/evento.py index f61f4207..2a280e31 100644 --- a/src/design/plone/contenttypes/behaviors/evento.py +++ b/src/design/plone/contenttypes/behaviors/evento.py @@ -57,11 +57,11 @@ class IEvento(model.Schema): prezzo = BlocksField( title=_("prezzo", default="Costo"), - required=False, + required=True, description=_( "prezzo_help", default="Eventuale costo dell'evento (se ci sono uno o piĆ¹ biglietti), " - "con link all'alcquisto se disponibile", + "con link all'acquisto se disponibile", ), )