diff --git a/dongtai_web/views/projects.py b/dongtai_web/views/projects.py index b734d2923..e9af2475a 100644 --- a/dongtai_web/views/projects.py +++ b/dongtai_web/views/projects.py @@ -87,6 +87,7 @@ def get(self, request): queryset = queryset.filter(name__icontains=name) if status is not None: queryset = queryset.filter(status=status) + queryset = queryset.select_related("user") page_summary, page_data = self.get_paginator(queryset, page, page_size) vul_levels_dict = get_vul_levels_dict( page_data, exclude_vul_status=exclude_vul_status