Skip to content

Commit

Permalink
Avoid overwrite simpleui menu configure
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhminhthien committed Jan 21, 2024
1 parent 0773e47 commit f8064f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simpleui/templatetags/simpletags.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ def menus(context, _get_config=None):
config = _get_config('SIMPLEUI_CONFIG')
if not config:
config = {}
else:
config = config.copy()

if config.get('dynamic', False) is True:
config = _import_reload(_get_config('DJANGO_SETTINGS_MODULE')).SIMPLEUI_CONFIG
Expand Down

0 comments on commit f8064f4

Please sign in to comment.