diff --git a/drakul/raids/views.py b/drakul/raids/views.py index eeca141..1a27996 100644 --- a/drakul/raids/views.py +++ b/drakul/raids/views.py @@ -141,7 +141,7 @@ class RaidDetailView(SingleObjectMixin, MultiModelFormView): no_response_users = User.objects \ .exclude(Q(date_joined__gt=raid.date) | Q(characters__raid_responses__raid=raid) | Q(is_active=False)) \ .select_related("main") \ - .order_by("main__klass") + .order_by("main__klass", "rank", "main__name") pseudo_no_responses = [RaidResponse(character=user.main, status=None) for user in no_response_users] prefetch_related_objects(pseudo_no_responses, "character__user__rank", "character__user__main")