diff options
author | Leif Johansson <leifj@sunet.se> | 2011-10-11 17:32:45 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-10-11 17:33:55 +0200 |
commit | 0df394597bd9138e0ddac30acfe76980b2434ac4 (patch) | |
tree | 7b7d7fa9ada85914a845951c231ab3cabfe067b9 | |
parent | e70433a0d9b4382543476929f989be8d74231612 (diff) |
sort room list
-rw-r--r-- | src/meetingtools/apps/room/views.py | 4 |
1 files 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) |