{"action":"created","issue":{"url":"https://api.github.com/repos/SectorLabs/django-postgres-extra/issues/71","repository_url":"https://api.github.com/repos/SectorLabs/django-postgres-extra","labels_url":"https://api.github.com/repos/SectorLabs/django-postgres-extra/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/SectorLabs/django-postgres-extra/issues/71/comments","events_url":"https://api.github.com/repos/SectorLabs/django-postgres-extra/issues/71/events","html_url":"https://github.com/SectorLabs/django-postgres-extra/issues/71","id":369042088,"node_id":"MDU6SXNzdWUzNjkwNDIwODg=","number":71,"title":"ValueError: too many values to unpack (expected 5)","user":{"login":"gtors","id":9943520,"node_id":"MDQ6VXNlcjk5NDM1MjA=","avatar_url":"https://avatars3.githubusercontent.com/u/9943520?v=4","gravatar_id":"","url":"https://api.github.com/users/gtors","html_url":"https://github.com/gtors","followers_url":"https://api.github.com/users/gtors/followers","following_url":"https://api.github.com/users/gtors/following{/other_user}","gists_url":"https://api.github.com/users/gtors/gists{/gist_id}","starred_url":"https://api.github.com/users/gtors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtors/subscriptions","organizations_url":"https://api.github.com/users/gtors/orgs","repos_url":"https://api.github.com/users/gtors/repos","events_url":"https://api.github.com/users/gtors/events{/privacy}","received_events_url":"https://api.github.com/users/gtors/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-11T09:54:52Z","updated_at":"2018-11-12T04:52:53Z","closed_at":null,"author_association":"NONE","body":"Django 2.1.2\r\nPython 3.7\r\nPsqlextra 1.20 (also reproduced in 1.21a12)\r\n\r\n```\r\nclass MyModel(PostgresModel):\r\n    id = models.BigAutoField(primary_key=True)\r\n    code = models.CharField(max_length=16)\r\n    name = models.CharField(max_length=256)\r\n\r\nMyModel.objects.values_list('pk', flat=True)\r\n```\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"<console>\", line 1, in <module>\r\n  File \"/home/gtors/.local/share/virtualenvs/tko-5nB7BPJA/lib/python3.7/site-packages/django/db/models/query.py\", line 777, in values_list\r\n    clone = self._values(*_fields, **expressions)\r\n  File \"/home/gtors/.local/share/virtualenvs/tko-5nB7BPJA/lib/python3.7/site-packages/django/db/models/query.py\", line 745, in _values\r\n    clone.query.set_values(fields)\r\n  File \"/home/gtors/.local/share/virtualenvs/tko-5nB7BPJA/lib/python3.7/site-packages/django/db/models/sql/query.py\", line 1987, in set_values\r\n    self.add_fields(field_names, True)\r\n  File \"/home/gtors/.local/share/virtualenvs/tko-5nB7BPJA/lib/python3.7/site-packages/psqlextra/query.py\", line 116, in add_fields\r\n    _, targets, _, joins, path = self.setup_joins(parts, opts, alias, allow_many=allow_m2m)\r\n```\r\n\r\n`self.setup_joins(parts, opts, alias, allow_many=allow_m2m)` returns tuple with 6 items:\r\n\r\n```\r\n(Pdb) self.setup_joins(parts, opts, alias, allow_many=allow_m2m)\r\nJoinInfo(final_field=<django.db.models.fields.BigAutoField: id>, targets=(<django.db.models.fields.BigAutoField: id>,), opts=<Options for MyModel>, joins=['core_mymodel'], path=[], transform_function=<function Query.setup_joins.<locals>.final_transformer at 0x7f1b34034d90>)\r\n```\r\n\r\n`transform_function` was added in this commit https://github.com/django/django/commit/2162f0983de0dfe2178531638ce7ea56f54dd4e7\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SectorLabs/django-postgres-extra/issues/comments/437755697","html_url":"https://github.com/SectorLabs/django-postgres-extra/issues/71#issuecomment-437755697","issue_url":"https://api.github.com/repos/SectorLabs/django-postgres-extra/issues/71","id":437755697,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzc1NTY5Nw==","user":{"login":"Cabalist","id":828557,"node_id":"MDQ6VXNlcjgyODU1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/828557?v=4","gravatar_id":"","url":"https://api.github.com/users/Cabalist","html_url":"https://github.com/Cabalist","followers_url":"https://api.github.com/users/Cabalist/followers","following_url":"https://api.github.com/users/Cabalist/following{/other_user}","gists_url":"https://api.github.com/users/Cabalist/gists{/gist_id}","starred_url":"https://api.github.com/users/Cabalist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cabalist/subscriptions","organizations_url":"https://api.github.com/users/Cabalist/orgs","repos_url":"https://api.github.com/users/Cabalist/repos","events_url":"https://api.github.com/users/Cabalist/events{/privacy}","received_events_url":"https://api.github.com/users/Cabalist/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T04:52:53Z","updated_at":"2018-11-12T04:52:53Z","author_association":"NONE","body":"This appears to be fixed in #66 \r\nCould we get that merged?"}}
{"actor":{"display_login":"Cabalist"}}