{"action":"closed","issue":{"url":"https://api.github.com/repos/ncsu-stars/Stars-CMS/issues/60","labels_url":"https://api.github.com/repos/ncsu-stars/Stars-CMS/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/ncsu-stars/Stars-CMS/issues/60/comments","events_url":"https://api.github.com/repos/ncsu-stars/Stars-CMS/issues/60/events","html_url":"https://github.com/ncsu-stars/Stars-CMS/issues/60","id":4274462,"number":60,"title":"Admin interface TemplateSyntaxError when editing volunteer ProjectMember","user":{"login":"mtdraelo","id":672302,"avatar_url":"https://avatars.githubusercontent.com/u/672302?v=3","gravatar_id":"","url":"https://api.github.com/users/mtdraelo","html_url":"https://github.com/mtdraelo","followers_url":"https://api.github.com/users/mtdraelo/followers","following_url":"https://api.github.com/users/mtdraelo/following{/other_user}","gists_url":"https://api.github.com/users/mtdraelo/gists{/gist_id}","starred_url":"https://api.github.com/users/mtdraelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtdraelo/subscriptions","organizations_url":"https://api.github.com/users/mtdraelo/orgs","repos_url":"https://api.github.com/users/mtdraelo/repos","events_url":"https://api.github.com/users/mtdraelo/events{/privacy}","received_events_url":"https://api.github.com/users/mtdraelo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ncsu-stars/Stars-CMS/labels/bug","name":"bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2012-04-25T04:33:45Z","updated_at":"2015-02-03T20:50:03Z","closed_at":"2015-02-03T20:50:03Z","body":"### Bugfix\r\n\r\nThe admin interface crashes when a superuser (maybe a regular user with appropriate permissions) attempts to edit a volunteer project member.  Such project members have empty member fields, which I suspect is the root cause of the problem.\r\n\r\n**Steps to Reproduce**\r\n1. Log in as a superuser\r\n2. Attempt to edit a volunteer project member (they have name \"(None)\") like /admin/cms/projectmember/190/\r\n3. TemplateSyntaxError thrown\r\n\r\n**Relevant Stacktrace**\r\n```Python\r\nFile \".../project/../apps/cms/models.py\" in __unicode__\r\n  162.             return self.get_full_name()\r\nFile \".../project/../apps/cms/models.py\" in get_full_name\r\n  154.             return self.member.user.get_full_name()\r\n\r\nException Type: TemplateSyntaxError at /admin/cms/projectmember/190/\r\nException Value: Caught AttributeError while rendering: 'NoneType' object has no attribute 'user'\r\n```"}}