|
@@ -293,6 +293,9 @@ class DataDictView(View):
|
|
updated_by=user_id
|
|
updated_by=user_id
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+ if not items:
|
|
|
|
+ return response.json(0)
|
|
|
|
+
|
|
# 删除原有子项及多语言
|
|
# 删除原有子项及多语言
|
|
old_items = DictItem.objects.filter(category=category)
|
|
old_items = DictItem.objects.filter(category=category)
|
|
DictItemI18n.objects.filter(item__in=old_items).delete()
|
|
DictItemI18n.objects.filter(item__in=old_items).delete()
|