|
@@ -37,6 +37,8 @@ class PlanListView(APIView):
|
|
|
creator_id = request.POST.get('creator')
|
|
|
type = request.POST.get('type')
|
|
|
company_id = request.POST.get('company_id')
|
|
|
+ if company_id == '':
|
|
|
+ company_id = -1
|
|
|
|
|
|
software = Software.objects.filter(id=software_id, delete=False)
|
|
|
if not software:
|
|
@@ -140,7 +142,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:
|