|
@@ -144,7 +144,7 @@ class PlanListView(APIView):
|
|
|
if creator_id:
|
|
|
plan_all = plan_all.filter(creator__id__contains=creator_id)
|
|
|
if company_id:
|
|
|
- plan_all = plan_all.filter(company__id__contains=company_id)
|
|
|
+ plan_all = plan_all.filter(company_id=company_id)
|
|
|
"""
|
|
|
sort=update_time, -update_time, create_time, -create_time, title, -title, state
|
|
|
"""
|
|
@@ -170,5 +170,6 @@ class PlanListView(APIView):
|
|
|
'state': plan.state,
|
|
|
'create_time': plan.create_time,
|
|
|
'update_time': plan.update_time,
|
|
|
+ 'company_id': plan.company_id,
|
|
|
})
|
|
|
return Response(info)
|