Skip to content

Commit

Permalink
Merge pull request #489 from huynhminhthien/master
Browse files Browse the repository at this point in the history
Avoid overwrite simpleui menu configure
  • Loading branch information
newpanjing committed Mar 25, 2024
2 parents 04ff774 + f8064f4 commit 90197a6
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 90197a6

Please sign in to comment.