Jelajahi Sumber

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

刘凡 1 tahun lalu
induk
melakukan
046e35b9fc
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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: