Skip to content

Commit

Permalink
Defer Problem.summary on ProblemList (DMOJ#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 authored and outloudvi committed Sep 28, 2020
1 parent 0747621 commit 3b81263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/views/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def get_normal_queryset(self):
filter |= Q(authors=self.profile)
filter |= Q(curators=self.profile)
filter |= Q(testers=self.profile)
queryset = Problem.objects.filter(filter).select_related('group').defer('description')
queryset = Problem.objects.filter(filter).select_related('group').defer('description', 'summary')
if not self.request.user.has_perm('see_organization_problem'):
filter = Q(is_organization_private=False)
if self.profile is not None:
Expand Down

0 comments on commit 3b81263

Please sign in to comment.