feat: 目标增加code查询条件
This commit is contained in:
parent
e15cc2f9ce
commit
6c3cbf0c5e
|
@ -67,5 +67,5 @@ class GoalViewSet(CustomModelViewSet):
|
|||
queryset = Goal.objects.all()
|
||||
serializer_class = GoalSerializer
|
||||
select_related_fields = ['mgroup', 'product', 'team', 'goal_cate']
|
||||
filterset_fields = ['mgroup', 'product', 'team', 'goal_cate', 'year']
|
||||
filterset_fields = ['mgroup', 'product', 'team', 'goal_cate', 'year', 'goal_cate__code']
|
||||
search_fields = ['name']
|
Loading…
Reference in New Issue