Skip to content

Commit

Permalink
Fix deprecated settings not picked up correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Feb 1, 2022
1 parent 0dc4419 commit c9c4ddc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wagtail_headless_preview/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def __check_user_settings(self, user_settings):
)
if setting_in_user_settings:
user_settings[new_setting] = user_settings[old_setting]
else:
user_settings[new_setting] = getattr(settings, old_setting)

for removed_setting in REMOVED_SETTINGS:
if removed_setting in user_settings or hasattr(settings, removed_setting):
raise RuntimeError(
Expand Down

0 comments on commit c9c4ddc

Please sign in to comment.