{"action":"created","comment":{"url":"https://api.github.com/repos/CTPUG/wafer/pulls/comments/48454074","id":48454074,"diff_hunk":"@@ -74,20 +74,25 @@ def get_author_contact(self):\n             # Should we wrap this in a span for styling?\n             contact = 'NO CONTACT INFO'\n         return '%s - %s' % (email, contact)\n-    get_author_contact.short_description = 'Contact Details'\n+    get_corresponding_author_contact.short_description = 'Contact Details'\n \n-    def get_author_name(self):\n+    def get_corresponding_author_name(self):\n         return '%s (%s)' % (self.corresponding_author,\n                             self.corresponding_author.get_full_name())\n \n-    get_author_name.admin_order_field = 'corresponding_author'\n-    get_author_name.short_description = 'Corresponding Author'\n-\n-    def get_author_display_name(self):\n-        full_name = self.corresponding_author.get_full_name()\n-        if full_name:\n-            return full_name\n-        return self.corresponding_author.username\n+    get_corresponding_author_name.admin_order_field = 'corresponding_author'\n+    get_corresponding_author_name.short_description = 'Corresponding Author'\n+\n+    def get_authors_display_name(self):\n+        authors = list(self.authors.all())\n+        # Corresponding authors first\n+        authors.sort(\n+            key=lambda author: 0 if author == self.corresponding_author\n+                               else author.userprofile.display_name())","path":"wafer/talks/models.py","position":37,"original_position":37,"commit_id":"c14cbafbf8a77a83844c6b40577800e751b6525c","original_commit_id":"c14cbafbf8a77a83844c6b40577800e751b6525c","user":{"login":"hodgestar","id":165551,"avatar_url":"https://avatars.githubusercontent.com/u/165551?v=3","gravatar_id":"","url":"https://api.github.com/users/hodgestar","html_url":"https://github.com/hodgestar","followers_url":"https://api.github.com/users/hodgestar/followers","following_url":"https://api.github.com/users/hodgestar/following{/other_user}","gists_url":"https://api.github.com/users/hodgestar/gists{/gist_id}","starred_url":"https://api.github.com/users/hodgestar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hodgestar/subscriptions","organizations_url":"https://api.github.com/users/hodgestar/orgs","repos_url":"https://api.github.com/users/hodgestar/repos","events_url":"https://api.github.com/users/hodgestar/events{/privacy}","received_events_url":"https://api.github.com/users/hodgestar/received_events","type":"User","site_admin":false},"body":"I suspect using a mix of `0` and strings as a keys will fail on Python 3?","created_at":"2015-12-27T11:51:42Z","updated_at":"2015-12-27T11:51:42Z","html_url":"https://github.com/CTPUG/wafer/pull/178#discussion_r48454074","pull_request_url":"https://api.github.com/repos/CTPUG/wafer/pulls/178","_links":{"self":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/comments/48454074"},"html":{"href":"https://github.com/CTPUG/wafer/pull/178#discussion_r48454074"},"pull_request":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/178"}}},"pull_request":{"url":"https://api.github.com/repos/CTPUG/wafer/pulls/178","id":54615655,"html_url":"https://github.com/CTPUG/wafer/pull/178","diff_url":"https://github.com/CTPUG/wafer/pull/178.diff","patch_url":"https://github.com/CTPUG/wafer/pull/178.patch","issue_url":"https://api.github.com/repos/CTPUG/wafer/issues/178","number":178,"state":"open","locked":false,"title":"Display all a talk's authors","user":{"login":"stefanor","id":442117,"avatar_url":"https://avatars.githubusercontent.com/u/442117?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanor","html_url":"https://github.com/stefanor","followers_url":"https://api.github.com/users/stefanor/followers","following_url":"https://api.github.com/users/stefanor/following{/other_user}","gists_url":"https://api.github.com/users/stefanor/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanor/subscriptions","organizations_url":"https://api.github.com/users/stefanor/orgs","repos_url":"https://api.github.com/users/stefanor/repos","events_url":"https://api.github.com/users/stefanor/events{/privacy}","received_events_url":"https://api.github.com/users/stefanor/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-27T11:02:43Z","updated_at":"2015-12-27T11:51:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f26f1fc336dda53d04f1863cd1fd6b1de37d36e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CTPUG/wafer/pulls/178/commits","review_comments_url":"https://api.github.com/repos/CTPUG/wafer/pulls/178/comments","review_comment_url":"https://api.github.com/repos/CTPUG/wafer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CTPUG/wafer/issues/178/comments","statuses_url":"https://api.github.com/repos/CTPUG/wafer/statuses/c14cbafbf8a77a83844c6b40577800e751b6525c","head":{"label":"CTPUG:display-all-authors","ref":"display-all-authors","sha":"c14cbafbf8a77a83844c6b40577800e751b6525c","user":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"repo":{"id":8658619,"name":"wafer","full_name":"CTPUG/wafer","owner":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CTPUG/wafer","description":"A wafer-thin web application for running small conferences. Built using Django.","fork":false,"url":"https://api.github.com/repos/CTPUG/wafer","forks_url":"https://api.github.com/repos/CTPUG/wafer/forks","keys_url":"https://api.github.com/repos/CTPUG/wafer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CTPUG/wafer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CTPUG/wafer/teams","hooks_url":"https://api.github.com/repos/CTPUG/wafer/hooks","issue_events_url":"https://api.github.com/repos/CTPUG/wafer/issues/events{/number}","events_url":"https://api.github.com/repos/CTPUG/wafer/events","assignees_url":"https://api.github.com/repos/CTPUG/wafer/assignees{/user}","branches_url":"https://api.github.com/repos/CTPUG/wafer/branches{/branch}","tags_url":"https://api.github.com/repos/CTPUG/wafer/tags","blobs_url":"https://api.github.com/repos/CTPUG/wafer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CTPUG/wafer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CTPUG/wafer/git/refs{/sha}","trees_url":"https://api.github.com/repos/CTPUG/wafer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CTPUG/wafer/statuses/{sha}","languages_url":"https://api.github.com/repos/CTPUG/wafer/languages","stargazers_url":"https://api.github.com/repos/CTPUG/wafer/stargazers","contributors_url":"https://api.github.com/repos/CTPUG/wafer/contributors","subscribers_url":"https://api.github.com/repos/CTPUG/wafer/subscribers","subscription_url":"https://api.github.com/repos/CTPUG/wafer/subscription","commits_url":"https://api.github.com/repos/CTPUG/wafer/commits{/sha}","git_commits_url":"https://api.github.com/repos/CTPUG/wafer/git/commits{/sha}","comments_url":"https://api.github.com/repos/CTPUG/wafer/comments{/number}","issue_comment_url":"https://api.github.com/repos/CTPUG/wafer/issues/comments{/number}","contents_url":"https://api.github.com/repos/CTPUG/wafer/contents/{+path}","compare_url":"https://api.github.com/repos/CTPUG/wafer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CTPUG/wafer/merges","archive_url":"https://api.github.com/repos/CTPUG/wafer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CTPUG/wafer/downloads","issues_url":"https://api.github.com/repos/CTPUG/wafer/issues{/number}","pulls_url":"https://api.github.com/repos/CTPUG/wafer/pulls{/number}","milestones_url":"https://api.github.com/repos/CTPUG/wafer/milestones{/number}","notifications_url":"https://api.github.com/repos/CTPUG/wafer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CTPUG/wafer/labels{/name}","releases_url":"https://api.github.com/repos/CTPUG/wafer/releases{/id}","created_at":"2013-03-08T19:50:58Z","updated_at":"2015-10-05T11:14:38Z","pushed_at":"2015-12-27T11:42:47Z","git_url":"git://github.com/CTPUG/wafer.git","ssh_url":"git@github.com:CTPUG/wafer.git","clone_url":"https://github.com/CTPUG/wafer.git","svn_url":"https://github.com/CTPUG/wafer","homepage":null,"size":1005,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":26,"forks":8,"open_issues":26,"watchers":5,"default_branch":"master"}},"base":{"label":"CTPUG:master","ref":"master","sha":"60dae22f03d7a910ba3ec1a4e9febfeca858a0a0","user":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"repo":{"id":8658619,"name":"wafer","full_name":"CTPUG/wafer","owner":{"login":"CTPUG","id":647522,"avatar_url":"https://avatars.githubusercontent.com/u/647522?v=3","gravatar_id":"","url":"https://api.github.com/users/CTPUG","html_url":"https://github.com/CTPUG","followers_url":"https://api.github.com/users/CTPUG/followers","following_url":"https://api.github.com/users/CTPUG/following{/other_user}","gists_url":"https://api.github.com/users/CTPUG/gists{/gist_id}","starred_url":"https://api.github.com/users/CTPUG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTPUG/subscriptions","organizations_url":"https://api.github.com/users/CTPUG/orgs","repos_url":"https://api.github.com/users/CTPUG/repos","events_url":"https://api.github.com/users/CTPUG/events{/privacy}","received_events_url":"https://api.github.com/users/CTPUG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CTPUG/wafer","description":"A wafer-thin web application for running small conferences. Built using Django.","fork":false,"url":"https://api.github.com/repos/CTPUG/wafer","forks_url":"https://api.github.com/repos/CTPUG/wafer/forks","keys_url":"https://api.github.com/repos/CTPUG/wafer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CTPUG/wafer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CTPUG/wafer/teams","hooks_url":"https://api.github.com/repos/CTPUG/wafer/hooks","issue_events_url":"https://api.github.com/repos/CTPUG/wafer/issues/events{/number}","events_url":"https://api.github.com/repos/CTPUG/wafer/events","assignees_url":"https://api.github.com/repos/CTPUG/wafer/assignees{/user}","branches_url":"https://api.github.com/repos/CTPUG/wafer/branches{/branch}","tags_url":"https://api.github.com/repos/CTPUG/wafer/tags","blobs_url":"https://api.github.com/repos/CTPUG/wafer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CTPUG/wafer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CTPUG/wafer/git/refs{/sha}","trees_url":"https://api.github.com/repos/CTPUG/wafer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CTPUG/wafer/statuses/{sha}","languages_url":"https://api.github.com/repos/CTPUG/wafer/languages","stargazers_url":"https://api.github.com/repos/CTPUG/wafer/stargazers","contributors_url":"https://api.github.com/repos/CTPUG/wafer/contributors","subscribers_url":"https://api.github.com/repos/CTPUG/wafer/subscribers","subscription_url":"https://api.github.com/repos/CTPUG/wafer/subscription","commits_url":"https://api.github.com/repos/CTPUG/wafer/commits{/sha}","git_commits_url":"https://api.github.com/repos/CTPUG/wafer/git/commits{/sha}","comments_url":"https://api.github.com/repos/CTPUG/wafer/comments{/number}","issue_comment_url":"https://api.github.com/repos/CTPUG/wafer/issues/comments{/number}","contents_url":"https://api.github.com/repos/CTPUG/wafer/contents/{+path}","compare_url":"https://api.github.com/repos/CTPUG/wafer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CTPUG/wafer/merges","archive_url":"https://api.github.com/repos/CTPUG/wafer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CTPUG/wafer/downloads","issues_url":"https://api.github.com/repos/CTPUG/wafer/issues{/number}","pulls_url":"https://api.github.com/repos/CTPUG/wafer/pulls{/number}","milestones_url":"https://api.github.com/repos/CTPUG/wafer/milestones{/number}","notifications_url":"https://api.github.com/repos/CTPUG/wafer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CTPUG/wafer/labels{/name}","releases_url":"https://api.github.com/repos/CTPUG/wafer/releases{/id}","created_at":"2013-03-08T19:50:58Z","updated_at":"2015-10-05T11:14:38Z","pushed_at":"2015-12-27T11:42:47Z","git_url":"git://github.com/CTPUG/wafer.git","ssh_url":"git@github.com:CTPUG/wafer.git","clone_url":"https://github.com/CTPUG/wafer.git","svn_url":"https://github.com/CTPUG/wafer","homepage":null,"size":1005,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":26,"forks":8,"open_issues":26,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/178"},"html":{"href":"https://github.com/CTPUG/wafer/pull/178"},"issue":{"href":"https://api.github.com/repos/CTPUG/wafer/issues/178"},"comments":{"href":"https://api.github.com/repos/CTPUG/wafer/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CTPUG/wafer/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/CTPUG/wafer/statuses/c14cbafbf8a77a83844c6b40577800e751b6525c"}}}}