Skip to content

Commit

Permalink
Merge pull request #1594 from st1020/pref/improve-projects-pref
Browse files Browse the repository at this point in the history
pref: improve projects performance
  • Loading branch information
Bidaya0 authored Jul 12, 2023
2 parents 4f3214a + fc3fb71 commit e584061
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dongtai_web/views/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e584061

Please sign in to comment.