Merge lp:~mhall119/summit/attendee-sortby-username into lp:summit

Proposed by Michael Hall
Status: Merged
Approved by: Nigel Babu
Approved revision: 240
Merged at revision: 241
Proposed branch: lp:~mhall119/summit/attendee-sortby-username
Merge into: lp:summit
Diff against target: 12 lines (+1/-1)
1 file modified
summit/schedule/models/attendeemodel.py (+1/-1)
To merge this branch: bzr merge lp:~mhall119/summit/attendee-sortby-username
Reviewer Review Type Date Requested Status
Nigel Babu (community) Approve
Review via email: mp+88635@code.launchpad.net

Commit message

Sort attendees by user.username first, and summit second, to allow easier searching

Description of the change

Changes default sort order from "summit then user" to "username then summit", which makes it easier to find the person you are looking for in the long attendee drop-downs on the admin

To post a comment you must log in.
Revision history for this message
Nigel Babu (nigelbabu) wrote :

Good idea.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'summit/schedule/models/attendeemodel.py'
2--- summit/schedule/models/attendeemodel.py 2011-10-21 21:09:39 +0000
3+++ summit/schedule/models/attendeemodel.py 2012-01-16 02:26:24 +0000
4@@ -48,7 +48,7 @@
5
6 class Meta:
7 app_label = 'schedule'
8- ordering = ('summit', 'user')
9+ ordering = ('user__username', 'summit')
10
11 def __unicode__(self):
12 return "%s (%s)" % (self.user.username, self.summit.name)

Subscribers

People subscribed via source and target branches