diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index 3b4ab4a..3f623d6 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -50,8 +50,8 @@ class WPlanViewSet(ListModelMixin, GenericViewSet): perms_map = {'get': '*'} queryset = SubProductionPlan.objects.select_related( 'process', 'workshop', 'subproduction', 'product').filter( - production_plan__state__in =[ - ProductionPlan.PLAN_STATE_WORKING, ProductionPlan.PLAN_STATE_ASSGINED + state__in =[ + SubProductionPlan.SUBPLAN_STATE_ASSGINED, SubProductionPlan.SUBPLAN_STATE_WORKING ] ) search_fields = []