Skip to content

Commit

Permalink
fix N+1 query due to attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
rm03 committed Apr 22, 2024
1 parent 78f02fd commit 212720b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/clubs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2876,7 +2876,8 @@ def get_queryset(self):
if "fair" in self.request.query_params
else Badge.objects.filter(visible=True)
),
)
),
"tickets",
)
.order_by("start_time")
)
Expand Down

1 comment on commit 212720b

@rm03
Copy link
Member Author

@rm03 rm03 commented on 212720b Apr 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ticketing attribute* somehow the commit message got messed up

Please sign in to comment.