From 97e11c723531177940ec3909c1a80b7b768d89c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8D=E5=B2=B3?= Date: Tue, 9 Jul 2019 17:48:04 +0800 Subject: [PATCH 1/3] add .gitattributes --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..60264b7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.html linguist-language=python +*.js linguist-language=python \ No newline at end of file From 337a3c9b98a77edb2a46f6a6abacebef7330de9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8D=E5=B2=B3?= Date: Tue, 9 Jul 2019 17:49:15 +0800 Subject: [PATCH 2/3] fix #2 get 500 when exchange menu --- adminlteui/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adminlteui/admin.py b/adminlteui/admin.py index a51e2e2..89ef7a0 100644 --- a/adminlteui/admin.py +++ b/adminlteui/admin.py @@ -237,7 +237,9 @@ def exchange_menu_view(self, request): use_custom_menu = Options.objects.get( option_name='USE_CUSTOM_MENU') except Options.DoesNotExist: - use_custom_menu = None + use_custom_menu = Options.objects.create( + option_name='USE_CUSTOM_MENU', option_value='0' + ) if not use_custom_menu or use_custom_menu.option_value == '0': use_custom_menu.option_value = '1' From 12224969e60278efd3fc64da026d86c1f3c61800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8D=E5=B2=B3?= Date: Tue, 9 Jul 2019 17:49:32 +0800 Subject: [PATCH 3/3] update version to 1.3.1 --- adminlteui/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminlteui/__init__.py b/adminlteui/__init__.py index 8981a64..c17da02 100644 --- a/adminlteui/__init__.py +++ b/adminlteui/__init__.py @@ -1,2 +1,2 @@ -version = '1.3.0' +version = '1.3.1' default_app_config = 'adminlteui.apps.AdminlteUIConfig'