From 3501251117ff22a8170430097a95b80ee5c6d118 Mon Sep 17 00:00:00 2001 From: flyhy Date: Tue, 4 Jul 2023 07:51:52 +0000 Subject: [PATCH] =?UTF-8?q?update=20backend/application/dispatch.py.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dapi/init/settings/=E6=8E=A5=E5=8F=A3=E4=BC=9A?= =?UTF-8?q?=E6=9A=B4=E9=9C=B2=E9=9D=9E=E5=89=8D=E7=AB=AF=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E7=BB=84=E7=B1=BB=E5=9E=8B=E7=9A=84=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: flyhy --- backend/application/dispatch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/application/dispatch.py b/backend/application/dispatch.py index 101b3ab..bf3fffe 100644 --- a/backend/application/dispatch.py +++ b/backend/application/dispatch.py @@ -4,6 +4,7 @@ from django.conf import settings from django.db import connection from django.core.cache import cache from dvadmin.utils.validator import CustomValidationError +from django.db.models import Q dispatch_db_type = getattr(settings, 'DISPATCH_DB_TYPE', 'memory') # redis @@ -44,7 +45,7 @@ def _get_all_system_config(): from dvadmin.system.models import SystemConfig system_config_obj = ( - SystemConfig.objects.filter(parent_id__isnull=False) + SystemConfig.objects.filter(~Q(parent_id__form_item_type=11), parent_id__isnull=False) .values("parent__key", "key", "value", "form_item_type") .order_by("sort") )