mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 19:33:11 +00:00
rename room view in sidebar, sort rooms by name
This commit is contained in:
parent
441f13c2e1
commit
6d3679dfb8
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</a>
|
</a>
|
||||||
<a class="list-group-item list-group-item-info" href="{% url "logs:stats-rooms" %}">
|
<a class="list-group-item list-group-item-info" href="{% url "logs:stats-rooms" %}">
|
||||||
<i class="fa fa-rooms"></i>
|
<i class="fa fa-rooms"></i>
|
||||||
{% trans "Users" %}
|
{% trans "Rooms" %}
|
||||||
</a>
|
</a>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -535,7 +535,7 @@ def stats_rooms(request):
|
||||||
_("Unoccupied rooms"): {
|
_("Unoccupied rooms"): {
|
||||||
_("Action"): Room.objects.filter(
|
_("Action"): Room.objects.filter(
|
||||||
adherent__isnull=True
|
adherent__isnull=True
|
||||||
).order_by('-num')[:40],
|
).order_by('Room.objects.name')[:40],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
return render(request, 'logs/stats_rooms.html', {'stats_list': stats})
|
return render(request, 'logs/stats_rooms.html', {'stats_list': stats})
|
||||||
|
|
Loading…
Reference in a new issue