Эх сурвалжийг харах

数据字典后台管理 - 返回列表值

linhaohong 3 сар өмнө
parent
commit
b5412ef277

+ 2 - 2
AdminController/DataDictManageController.py

@@ -75,8 +75,8 @@ class DataDictView(View):
             for category in categories:
                 # 类别名称国际化
                 i18n_name = (
-                        category.translations.values_list("name", flat=True).first()
-                        or ""
+                        category.translations.values_list("name", flat=True)
+                        or []
                 )
 
                 # 子表字典项