feat: mioitem增加查询条件
This commit is contained in:
parent
d9ef7548e4
commit
39fbf6d0f3
|
@ -184,7 +184,12 @@ class MIOItemViewSet(ListModelMixin, BulkCreateModelMixin, BulkDestroyModelMixin
|
|||
serializer_class = MIOItemSerializer
|
||||
create_serializer_class = MIOItemCreateSerializer
|
||||
select_related_fields = ['warehouse', 'mio', 'material']
|
||||
filterset_fields = ['warehouse', 'mio', 'material']
|
||||
filterset_fields = {
|
||||
"warehouse": ["exact"],
|
||||
"mio": ["exact"],
|
||||
"material": ["exact"],
|
||||
"test_date": ["isnull", "exact"]
|
||||
}
|
||||
ordering = ['create_time']
|
||||
|
||||
def perform_destroy(self, instance):
|
||||
|
|
Loading…
Reference in New Issue