瀏覽代碼

【FIX】修改查询plan接口software_id传参问题

刘凡 1 年之前
父節點
當前提交
19ec998caa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/plan/views/planlistview.py

+ 1 - 1
apps/plan/views/planlistview.py

@@ -135,7 +135,7 @@ class PlanListView(APIView):
         if title:
             plan_all = plan_all.filter(title__contains=title)
         if software_id:
-            plan_all = plan_all.filter(software__id__contains=software_id)
+            plan_all = plan_all.filter(software__id=software_id)
         if state:
             plan_all = plan_all.filter(state=state)
         if creator_id: