Skip to content

Commit

Permalink
fix: theming on devstack
Browse files Browse the repository at this point in the history
The waffle switch creates a recursive situation.
  • Loading branch information
igobranco committed Jul 26, 2024
1 parent 744f307 commit 72e0f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecommerce/theming/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def is_comprehensive_theming_enabled():
return False

# Return False if we're currently processing a request and theming is disabled via runtime switch
if bool(get_current_request()) and waffle.switch_is_active(settings.DISABLE_THEMING_ON_RUNTIME_SWITCH):
if bool(get_current_request()): # and waffle.switch_is_active(settings.DISABLE_THEMING_ON_RUNTIME_SWITCH):
return False

# Return True indicating theming is enabled
Expand Down

0 comments on commit 72e0f76

Please sign in to comment.