From 6d3679dfb8df18eab1b072aeef0c3676007c0620 Mon Sep 17 00:00:00 2001 From: Lazare Olivry Date: Tue, 21 Aug 2018 15:09:08 +0200 Subject: [PATCH] rename room view in sidebar, sort rooms by name --- logs/templates/logs/sidebar.html | 2 +- logs/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logs/templates/logs/sidebar.html b/logs/templates/logs/sidebar.html index cb542124..b8a0ec0d 100644 --- a/logs/templates/logs/sidebar.html +++ b/logs/templates/logs/sidebar.html @@ -54,7 +54,7 @@ with this program; if not, write to the Free Software Foundation, Inc., - {% trans "Users" %} + {% trans "Rooms" %} {% acl_end %} {% endblock %} diff --git a/logs/views.py b/logs/views.py index 564afc1e..6d2921f0 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('-num')[:40], + ).order_by('Room.objects.name')[:40], }, } return render(request, 'logs/stats_rooms.html', {'stats_list': stats})