0001-settings-WORKING_DAY_CALENDAR-propagation-in-EXCEPTI.patch
chrono/settings.py | ||
---|---|---|
202 | 202 |
if os.path.exists(local_settings_file): |
203 | 203 |
with open(local_settings_file) as fd: |
204 | 204 |
exec(fd.read()) |
205 | ||
206 |
# update EXCEPTIONS_SOURCES with modified (or not) WORKING_DAY_CALENDAR |
|
207 |
if EXCEPTIONS_SOURCES.get('holidays', {}) == {'class': 'workalendar.europe.France', 'label': N_('Holidays')}: |
|
208 |
EXCEPTIONS_SOURCES['holidays']['class'] = WORKING_DAY_CALENDAR |
|
205 |
- |