From f8064f4a2e4718610d3172f545fc8ced7a3ca3ad Mon Sep 17 00:00:00 2001 From: huynhminhthien Date: Sun, 21 Jan 2024 20:22:08 +0700 Subject: [PATCH] Avoid overwrite simpleui menu configure --- simpleui/templatetags/simpletags.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simpleui/templatetags/simpletags.py b/simpleui/templatetags/simpletags.py index 4e91d92c..1f6bf5e0 100644 --- a/simpleui/templatetags/simpletags.py +++ b/simpleui/templatetags/simpletags.py @@ -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