From 3f1c4ee147bd3a59d92d15284782893439d29837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 15 Feb 2018 13:40:56 +0100 Subject: [PATCH] newsletters: do not include cell by default (#21876) --- combo/apps/newsletters/models.py | 2 +- combo/settings.py | 3 ++- tests/settings.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/combo/apps/newsletters/models.py b/combo/apps/newsletters/models.py index 7bed3c7..ccf7f45 100644 --- a/combo/apps/newsletters/models.py +++ b/combo/apps/newsletters/models.py @@ -55,7 +55,7 @@ class NewslettersCell(CellBase): @classmethod def is_enabled(cls): - return True + return settings.NEWSLETTERS_CELL_ENABLED class Meta: verbose_name = _('Newsletters') diff --git a/combo/settings.py b/combo/settings.py index 7ea8af4..a14a94b 100644 --- a/combo/settings.py +++ b/combo/settings.py @@ -283,8 +283,9 @@ COMBO_MAP_ATTRIBUTION = 'Map data © Ope # we use 28s by default: timeout just before web server, which is usually 30s REQUESTS_TIMEOUT = 28 -# hide work-in-progress/experimental/whatever booking calendar cell for now +# hide work-in-progress/experimental/whatever cells for now BOOKING_CALENDAR_CELL_ENABLED = False +NEWSLETTERS_CELL_ENABLED = False local_settings_file = os.environ.get('COMBO_SETTINGS_FILE', os.path.join(os.path.dirname(__file__), 'local_settings.py')) diff --git a/tests/settings.py b/tests/settings.py index 03ee784..088f837 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -57,3 +57,4 @@ if 'DISABLE_MIGRATIONS' in os.environ: FAMILY_SERVICE = {'root': '/'} BOOKING_CALENDAR_CELL_ENABLED = True +NEWSLETTERS_CELL_ENABLED = True -- 2.16.1