Compare commits
2 Commits
aad329061b
...
da1f587036
| Author | SHA1 | Date |
|---|---|---|
|
|
da1f587036 | |
|
|
55c94a83ce |
|
|
@ -170,7 +170,7 @@ class WMaterialViewSet(CustomListModelMixin, CustomGenericViewSet):
|
|||
queryset = WMaterial.objects.filter(count__gt=0)
|
||||
serializer_class = WMaterialSerializer
|
||||
select_related_fields = ["material", "belong_dept", "material__process", "supplier"]
|
||||
search_fields = ["material__name", "material__number", "material__specification", "batch", "material__model", "defect__name", "notok_sign"]
|
||||
search_fields = ["material__name", "material__specification", "batch", "material__model", "defect__name", "notok_sign"]
|
||||
filterset_class = WMaterialFilter
|
||||
ordering_fields = ["update_time", "state", "count", "count_xtest"]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue