0001-newsletters-do-not-include-cell-by-default-21876.patch
combo/apps/newsletters/models.py | ||
---|---|---|
55 | 55 | |
56 | 56 |
@classmethod |
57 | 57 |
def is_enabled(cls): |
58 |
return True
|
|
58 |
return settings.NEWSLETTERS_CELL_ENABLED
|
|
59 | 59 | |
60 | 60 |
class Meta: |
61 | 61 |
verbose_name = _('Newsletters') |
combo/settings.py | ||
---|---|---|
283 | 283 |
# we use 28s by default: timeout just before web server, which is usually 30s |
284 | 284 |
REQUESTS_TIMEOUT = 28 |
285 | 285 | |
286 |
# hide work-in-progress/experimental/whatever booking calendar cell for now
|
|
286 |
# hide work-in-progress/experimental/whatever cells for now
|
|
287 | 287 |
BOOKING_CALENDAR_CELL_ENABLED = False |
288 |
NEWSLETTERS_CELL_ENABLED = False |
|
288 | 289 | |
289 | 290 |
local_settings_file = os.environ.get('COMBO_SETTINGS_FILE', |
290 | 291 |
os.path.join(os.path.dirname(__file__), 'local_settings.py')) |
tests/settings.py | ||
---|---|---|
57 | 57 |
FAMILY_SERVICE = {'root': '/'} |
58 | 58 | |
59 | 59 |
BOOKING_CALENDAR_CELL_ENABLED = True |
60 |
NEWSLETTERS_CELL_ENABLED = True |
|
60 |
- |