From 3b8880ae9a8544943ffa16e2e9841ff2dbfe75f0 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 13 Oct 2023 14:22:41 +0200 Subject: [PATCH] Remove upgrade step --- CHANGES.rst | 3 ++- src/redturtle/prenotazioni/content/prenotazioni_folder.py | 2 +- .../prenotazioni/tests/test_prenotazioni_context_state.py | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 99e8c9df..14aaf321 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,8 @@ Changelog 2.1.2 (unreleased) ------------------ -- Nothing changed yet. +- Change bookings default limit to 0. + [folix-01] 2.1.1 (2023-10-11) diff --git a/src/redturtle/prenotazioni/content/prenotazioni_folder.py b/src/redturtle/prenotazioni/content/prenotazioni_folder.py index a859dfc5..7e2b54b0 100644 --- a/src/redturtle/prenotazioni/content/prenotazioni_folder.py +++ b/src/redturtle/prenotazioni/content/prenotazioni_folder.py @@ -632,7 +632,7 @@ def data_validation(data): default="The number of simultaneous bookings allowed for the same user.", ), required=False, - default=2, + default=0, ) model.fieldset( diff --git a/src/redturtle/prenotazioni/tests/test_prenotazioni_context_state.py b/src/redturtle/prenotazioni/tests/test_prenotazioni_context_state.py index bceedc33..15564163 100644 --- a/src/redturtle/prenotazioni/tests/test_prenotazioni_context_state.py +++ b/src/redturtle/prenotazioni/tests/test_prenotazioni_context_state.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import unittest from datetime import date, datetime + from Acquisition import aq_parent from plone import api from plone.app.testing import ( @@ -10,6 +11,7 @@ setRoles, ) from plone.restapi.testing import RelativeSession + from redturtle.prenotazioni.adapters.booker import IBooker from redturtle.prenotazioni.testing import REDTURTLE_PRENOTAZIONI_INTEGRATION_TESTING from redturtle.prenotazioni.tests.helpers import WEEK_TABLE_SCHEMA