Skip to content

Commit

Permalink
perf: use select_related to fetch users in ComparisonAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
GresilleSiffle committed Nov 14, 2024
1 parent 8f94901 commit 897aa3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/tournesol/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ class ComparisonAdmin(admin.ModelAdmin):
"entity_1",
"entity_2",
"poll",
"user",
)
raw_id_fields = (
"user",
Expand Down

0 comments on commit 897aa3c

Please sign in to comment.