{"action":"created","issue":{"url":"https://api.github.com/repos/celery/celery/issues/3417","repository_url":"https://api.github.com/repos/celery/celery","labels_url":"https://api.github.com/repos/celery/celery/issues/3417/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/3417/comments","events_url":"https://api.github.com/repos/celery/celery/issues/3417/events","html_url":"https://github.com/celery/celery/issues/3417","id":173820701,"number":3417,"title":"django model fields are not unicode in 4.0.0rc3","user":{"login":"ihucos","id":2066372,"avatar_url":"https://avatars.githubusercontent.com/u/2066372?v=3","gravatar_id":"","url":"https://api.github.com/users/ihucos","html_url":"https://github.com/ihucos","followers_url":"https://api.github.com/users/ihucos/followers","following_url":"https://api.github.com/users/ihucos/following{/other_user}","gists_url":"https://api.github.com/users/ihucos/gists{/gist_id}","starred_url":"https://api.github.com/users/ihucos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihucos/subscriptions","organizations_url":"https://api.github.com/users/ihucos/orgs","repos_url":"https://api.github.com/users/ihucos/repos","events_url":"https://api.github.com/users/ihucos/events{/privacy}","received_events_url":"https://api.github.com/users/ihucos/received_events","type":"User","site_admin":false},"labels":[{"id":46818,"url":"https://api.github.com/repos/celery/celery/labels/Component:%20Django","name":"Component: Django","color":"ededed","default":false},{"id":46815,"url":"https://api.github.com/repos/celery/celery/labels/Severity:%20Blocker","name":"Severity: Blocker","color":"f70a0a","default":false},{"id":405285110,"url":"https://api.github.com/repos/celery/celery/labels/Version:%204.0","name":"Version: 4.0","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/celery/celery/milestones/17","html_url":"https://github.com/celery/celery/milestones/v4.0","labels_url":"https://api.github.com/repos/celery/celery/milestones/17/labels","id":308346,"number":17,"title":"v4.0","description":"","creator":{"login":"ask","id":1558,"avatar_url":"https://avatars.githubusercontent.com/u/1558?v=3","gravatar_id":"","url":"https://api.github.com/users/ask","html_url":"https://github.com/ask","followers_url":"https://api.github.com/users/ask/followers","following_url":"https://api.github.com/users/ask/following{/other_user}","gists_url":"https://api.github.com/users/ask/gists{/gist_id}","starred_url":"https://api.github.com/users/ask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ask/subscriptions","organizations_url":"https://api.github.com/users/ask/orgs","repos_url":"https://api.github.com/users/ask/repos","events_url":"https://api.github.com/users/ask/events{/privacy}","received_events_url":"https://api.github.com/users/ask/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":58,"state":"open","created_at":"2013-04-11T10:46:42Z","updated_at":"2016-11-04T20:23:03Z","due_on":"2016-11-04T00:00:00Z","closed_at":null},"comments":14,"created_at":"2016-08-29T16:57:27Z","updated_at":"2016-11-14T18:43:53Z","closed_at":null,"body":"After upgrading to celery==4.0.0rc3 simple django model fields lookup return \"normal\" strings and not unicode strings - we are using python2 - inside the tasks.\nCalling the tasks functions in the shell works, calling them with apply_async reproduces the error.\n"},"comment":{"url":"https://api.github.com/repos/celery/celery/issues/comments/260423236","html_url":"https://github.com/celery/celery/issues/3417#issuecomment-260423236","issue_url":"https://api.github.com/repos/celery/celery/issues/3417","id":260423236,"user":{"login":"aitjcize","id":197798,"avatar_url":"https://avatars.githubusercontent.com/u/197798?v=3","gravatar_id":"","url":"https://api.github.com/users/aitjcize","html_url":"https://github.com/aitjcize","followers_url":"https://api.github.com/users/aitjcize/followers","following_url":"https://api.github.com/users/aitjcize/following{/other_user}","gists_url":"https://api.github.com/users/aitjcize/gists{/gist_id}","starred_url":"https://api.github.com/users/aitjcize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitjcize/subscriptions","organizations_url":"https://api.github.com/users/aitjcize/orgs","repos_url":"https://api.github.com/users/aitjcize/repos","events_url":"https://api.github.com/users/aitjcize/events{/privacy}","received_events_url":"https://api.github.com/users/aitjcize/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T18:43:53Z","updated_at":"2016-11-14T18:43:53Z","body":"I think I've identified the cause of this, the bug is actually in kombu:\r\n\r\n[2016-11-14 18:38:32,897: WARNING/MainProcess] info('Connected to %s', c.connection.as_uri())\r\n[2016-11-14 18:38:32,897: WARNING/MainProcess] File \"/home/aitjcize/bb8/.env/local/lib/python2.7/site-packages/kombu/connection.py\", line 647, in as_uri\r\n[2016-11-14 18:38:32,897: WARNING/MainProcess] sanitize=not include_password, mask=mask,\r\n[2016-11-14 18:38:32,897: WARNING/MainProcess] File \"/home/aitjcize/bb8/.env/local/lib/python2.7/site-packages/kombu/utils/url.py\", line 75, in as_url\r\n[2016-11-14 18:38:32,897: WARNING/MainProcess] parts.append(safequote(host) if host else '')\r\n[2016-11-14 18:38:32,897: WARNING/MainProcess] File \"/usr/lib/python2.7/urllib.py\", line 1286, in quote\r\n[2016-11-14 18:38:32,898: WARNING/MainProcess] traceback.print_stack()\r\n\r\nI've created a PR here https://github.com/celery/kombu/pull/654 which fixes the issue."}}
{"actor":{"display_login":"aitjcize"}}