Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ynr/apps/duplicates/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class DuplicateSuggestionListView(GroupRequiredMixin, ListView):

def get_queryset(self):
"""
Only display suggestions that are open
Only display suggestions that are open, in a random order so the
gnarly ones don't permanently camp out at the top.
"""
return (
DuplicateSuggestion.objects.open()
Expand All @@ -34,6 +35,7 @@ def get_queryset(self):
"person__other_names",
"other_person__other_names",
)
.order_by("?")
)


Expand Down