From 511b1492903f6cc06d42f95a572b5b916a9ebd21 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 4 Jul 2024 10:25:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0routepack=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mtm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mtm/views.py b/apps/mtm/views.py index baabeb7a..533db083 100644 --- a/apps/mtm/views.py +++ b/apps/mtm/views.py @@ -185,7 +185,7 @@ class RoutePackViewSet(CustomModelViewSet): queryset = RoutePack.objects.all() serializer_class = RoutePackSerializer search_fields = ['name'] - select_related_fields = ['material'] + select_related_fields = ['material', 'create_by'] filterset_fields = ['material'] def update(self, request, *args, **kwargs):