Optimize a query
This commit is contained in:
parent
dc243dc136
commit
2270730407
2 changed files with 3 additions and 2 deletions
|
@ -477,7 +477,7 @@ class OrganizationSubmissions(
|
|||
return (
|
||||
super()
|
||||
._get_entire_queryset()
|
||||
.filter(user__organizations=self.organization, problem__in=problems)
|
||||
.filter(user__in=self.organization.members.all(), problem__in=problems)
|
||||
)
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue