From 3109768fb06a438c652ef8d0d77c6285f9022551 Mon Sep 17 00:00:00 2001 From: Lazare Olivry Date: Tue, 21 Aug 2018 15:16:44 +0200 Subject: [PATCH] change room ordering --- logs/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logs/views.py b/logs/views.py index 6d2921f0..9e27c661 100644 --- a/logs/views.py +++ b/logs/views.py @@ -535,7 +535,7 @@ def stats_rooms(request): _("Unoccupied rooms"): { _("Action"): Room.objects.filter( adherent__isnull=True - ).order_by('Room.objects.name')[:40], + ).order_by('Room.name')[:40], }, } return render(request, 'logs/stats_rooms.html', {'stats_list': stats})