feat: handover移除search包含id

This commit is contained in:
caoqianming 2026-04-29 10:42:17 +08:00
parent 32b0313349
commit 4d2a88ab1e
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ class HandoverViewSet(CustomModelViewSet):
serializer_class = HandoverSerializer
select_related_fields = ["send_user", "send_mgroup", "send_dept", "recive_user", "recive_mgroup", "recive_dept", "wm", "material_changed", "material"]
filterset_class = HandoverFilter
search_fields = ["id", "material__name", "material__number", "material__specification", "batch", "material__model", "b_handover__batch", "new_batch", "wm__batch"]
search_fields = ["material__name", "material__number", "material__specification", "batch", "material__model", "b_handover__batch", "new_batch", "wm__batch"]
prefetch_related_fields = [Prefetch("b_handover", queryset=Handoverb.objects.select_related("wm__defect"))]
def perform_destroy(self, instance: Handover):