Merge lp:~nigelbabu/launchpad/203478-meeting-sort into lp:launchpad
Proposed by
Nigel Babu
Status: | Merged |
---|---|
Approved by: | j.c.sackett |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13094 |
Proposed branch: | lp:~nigelbabu/launchpad/203478-meeting-sort |
Merge into: | lp:launchpad |
Diff against target: |
58 lines (+29/-2) 3 files modified
lib/lp/blueprints/model/sprint.py (+1/-1) lib/lp/blueprints/model/tests/test_sprint.py (+27/-0) lib/lp/blueprints/stories/sprints/20-sprint-registration.txt (+1/-1) |
To merge this branch: | bzr merge lp:~nigelbabu/launchpad/203478-meeting-sort |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Review via email: mp+61623@code.launchpad.net |
Commit message
[r=jcsackett][bug=203478] Sorts the list of attendees for a sprint by displayname, rather than the name attribute.
Description of the change
Sort the list of attendees for a sprint or meeting by displayname instead of name.
To post a comment you must log in.
This looks fine.
It might make a little more sense to have your test check displayname rather than name, since that was the condition you were ordering on. e.g.
+ attendances = [bob.displayname, dave.displayname] attendee. displayname for attendee in sprint.attendances] l(attendances, people)
+ people = [attendee.
+ self.assertEqua