From 0df394597bd9138e0ddac30acfe76980b2434ac4 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 11 Oct 2011 17:32:45 +0200 Subject: sort room list --- src/meetingtools/apps/room/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index c2c02f2..e042b7e 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -291,7 +291,7 @@ def user_rooms(request): r['folder_sco_id'] = my_meetings_sco_id room = _import_room(request,acc,r) - rooms = Room.objects.filter(creator=request.user).all() + rooms = Room.objects.filter(creator=request.user).order_by('name').all() return respond_to(request, {'text/html':'apps/room/list.html'}, {'title':'Your Rooms','edit':True,'active':len(rooms) == 1,'rooms':rooms}) @@ -403,7 +403,7 @@ def _room2dict(room): # should not require login def list_by_tag(request,tn): tags = tn.split('+') - rooms = TaggedItem.objects.get_by_model(Room, tags).all() + rooms = TaggedItem.objects.get_by_model(Room, tags).order_by('name').all() for room in rooms: _import_room(request,room.acc,{'sco_id': room.sco_id}) title = 'Rooms tagged with %s' % " and ".join(tags) -- cgit v1.1