{"action":"created","issue":{"url":"https://api.github.com/repos/alex/django-taggit/issues/511","repository_url":"https://api.github.com/repos/alex/django-taggit","labels_url":"https://api.github.com/repos/alex/django-taggit/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/alex/django-taggit/issues/511/comments","events_url":"https://api.github.com/repos/alex/django-taggit/issues/511/events","html_url":"https://github.com/alex/django-taggit/issues/511","id":281455276,"number":511,"title":"Django 2.0 and tags__name__in=[\"\"] error","user":{"login":"TheProrok29","id":20223725,"avatar_url":"https://avatars2.githubusercontent.com/u/20223725?v=4","gravatar_id":"","url":"https://api.github.com/users/TheProrok29","html_url":"https://github.com/TheProrok29","followers_url":"https://api.github.com/users/TheProrok29/followers","following_url":"https://api.github.com/users/TheProrok29/following{/other_user}","gists_url":"https://api.github.com/users/TheProrok29/gists{/gist_id}","starred_url":"https://api.github.com/users/TheProrok29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheProrok29/subscriptions","organizations_url":"https://api.github.com/users/TheProrok29/orgs","repos_url":"https://api.github.com/users/TheProrok29/repos","events_url":"https://api.github.com/users/TheProrok29/events{/privacy}","received_events_url":"https://api.github.com/users/TheProrok29/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-12-12T16:46:02Z","updated_at":"2017-12-20T02:34:14Z","closed_at":null,"author_association":"NONE","body":"In Django 2.0, filtering using tags__name__in doesen't work.\r\nWhen try to use this function for example:\r\npublished= Post.published.all() and then\r\npublished.filter(tags__name__in=['music'])\r\n\r\nI have this:\r\nTraceback (most recent call last):\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/core/handlers/exception.py\", line 35, in inner\r\n    response = get_response(request)\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/core/handlers/base.py\", line 128, in _get_response\r\n    response = self.process_exception_by_middleware(e, request)\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/core/handlers/base.py\", line 126, in _get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/home/prorok/Django/mysite/blog/views.py\", line 95, in post_detail\r\n    similar_posts = Post.published.filter(tags__in=post_tags_ids).exclude(id=post.id)\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/db/models/manager.py\", line 82, in manager_method\r\n    return getattr(self.get_queryset(), name)(*args, **kwargs)\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/db/models/query.py\", line 836, in filter\r\n    return self._filter_or_exclude(False, *args, **kwargs)\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/db/models/query.py\", line 854, in _filter_or_exclude\r\n    clone.query.add_q(Q(*args, **kwargs))\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/db/models/sql/query.py\", line 1252, in add_q\r\n    clause, _ = self._add_q(q_object, self.used_aliases)\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/db/models/sql/query.py\", line 1276, in _add_q\r\n    split_subq=split_subq,\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/db/models/sql/query.py\", line 1152, in build_filter\r\n    lookups, parts, reffed_expression = self.solve_lookup_type(arg)\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/db/models/sql/query.py\", line 1015, in solve_lookup_type\r\n    _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())\r\n  File \"/home/prorok/Django/Django/lib/python3.6/site-packages/django/db/models/sql/query.py\", line 1390, in names_to_path\r\n    pathinfos = field.get_path_info(filtered_relation)\r\nTypeError: get_path_info() takes 1 positional argument but 2 were given\r\n\r\nI used #509. "},"comment":{"url":"https://api.github.com/repos/alex/django-taggit/issues/comments/352947627","html_url":"https://github.com/alex/django-taggit/issues/511#issuecomment-352947627","issue_url":"https://api.github.com/repos/alex/django-taggit/issues/511","id":352947627,"user":{"login":"jdufresne","id":347634,"avatar_url":"https://avatars1.githubusercontent.com/u/347634?v=4","gravatar_id":"","url":"https://api.github.com/users/jdufresne","html_url":"https://github.com/jdufresne","followers_url":"https://api.github.com/users/jdufresne/followers","following_url":"https://api.github.com/users/jdufresne/following{/other_user}","gists_url":"https://api.github.com/users/jdufresne/gists{/gist_id}","starred_url":"https://api.github.com/users/jdufresne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdufresne/subscriptions","organizations_url":"https://api.github.com/users/jdufresne/orgs","repos_url":"https://api.github.com/users/jdufresne/repos","events_url":"https://api.github.com/users/jdufresne/events{/privacy}","received_events_url":"https://api.github.com/users/jdufresne/received_events","type":"User","site_admin":false},"created_at":"2017-12-20T02:34:14Z","updated_at":"2017-12-20T02:34:14Z","author_association":"CONTRIBUTOR","body":"Thanks for testing."}}
{"actor":{"display_login":"jdufresne"}}