diff --git a/multi_op/api/views.py b/multi_op/api/views.py index b065b3b7..fd62b7c4 100644 --- a/multi_op/api/views.py +++ b/multi_op/api/views.py @@ -34,6 +34,6 @@ class PendingConnectionViewSet(viewsets.ReadOnlyModelViewSet): topologie.Room.objects.select_related("building__dormitory") .filter(port__isnull=True) .filter(adherent__in=all_has_access()) - .order_by("building_dormitory", "port") + .order_by("building__dormitory", "port") ) serializer_class = serializers.RoomSerializer