fix: mlog select_related_fields bug2

This commit is contained in:
caoqianming 2024-11-18 17:38:11 +08:00
parent a0423cbd3f
commit 7c85d3df65
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class MlogViewSet(CustomModelViewSet):
"""
queryset = Mlog.objects.all()
serializer_class = MlogSerializer
select_related_fields = ['create_by', 'update_by', 'mtask', 'mtaskb'
select_related_fields = ['create_by', 'update_by', 'mtask',
'handle_user', 'handle_user_2', 'equipment',
'equipment_2', 'material_in', 'material_out', 'route__routepack',
'supplier', 'ticket', 'mgroup__process', 'test_user']