{"action":"opened","issue":{"url":"https://api.github.com/repos/jamesturk/django-secretballot/issues/31","repository_url":"https://api.github.com/repos/jamesturk/django-secretballot","labels_url":"https://api.github.com/repos/jamesturk/django-secretballot/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/jamesturk/django-secretballot/issues/31/comments","events_url":"https://api.github.com/repos/jamesturk/django-secretballot/issues/31/events","html_url":"https://github.com/jamesturk/django-secretballot/issues/31","id":164706420,"number":31,"title":"Unicode-objects must be encoded before hashing","user":{"login":"theasder","id":3380261,"avatar_url":"https://avatars.githubusercontent.com/u/3380261?v=3","gravatar_id":"","url":"https://api.github.com/users/theasder","html_url":"https://github.com/theasder","followers_url":"https://api.github.com/users/theasder/followers","following_url":"https://api.github.com/users/theasder/following{/other_user}","gists_url":"https://api.github.com/users/theasder/gists{/gist_id}","starred_url":"https://api.github.com/users/theasder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theasder/subscriptions","organizations_url":"https://api.github.com/users/theasder/orgs","repos_url":"https://api.github.com/users/theasder/repos","events_url":"https://api.github.com/users/theasder/events{/privacy}","received_events_url":"https://api.github.com/users/theasder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-10T08:52:32Z","updated_at":"2016-07-10T08:52:32Z","closed_at":null,"body":"Used the latest version of django-secretballot, django v.1.9.5, used python3 and it raises an error after launching server\r\n\r\n\tInternal Server Error: /\r\n\tTraceback (most recent call last):\r\n\t  File \"/Users/artemdremov/Documents/python/interview_project/venv/interview_project/lib/python3.4/site-packages/django/core/handlers/base.py\", line 123, in get_response\r\n\t    response = middleware_method(request)\r\n\t  File \"/Users/artemdremov/Documents/python/interview_project/venv/interview_project/lib/python3.4/site-packages/secretballot/middleware.py\", line 6, in process_request\r\n\t    request.secretballot_token = self.generate_token(request)\r\n\t  File \"/Users/artemdremov/Documents/python/interview_project/venv/interview_project/lib/python3.4/site-packages/likes/middleware.py\", line 19, in generate_token\r\n\t    return md5(s).hexdigest()\r\n\tTypeError: Unicode-objects must be encoded before hashing"}}
{"actor":{"display_login":"theasder"}}