{"action":"opened","issue":{"url":"https://api.github.com/repos/etianen/django-reversion/issues/609","repository_url":"https://api.github.com/repos/etianen/django-reversion","labels_url":"https://api.github.com/repos/etianen/django-reversion/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/etianen/django-reversion/issues/609/comments","events_url":"https://api.github.com/repos/etianen/django-reversion/issues/609/events","html_url":"https://github.com/etianen/django-reversion/issues/609","id":196283306,"number":609,"title":"_Str object AttributeError","user":{"login":"hesamedgh","id":20420169,"avatar_url":"https://avatars.githubusercontent.com/u/20420169?v=3","gravatar_id":"","url":"https://api.github.com/users/hesamedgh","html_url":"https://github.com/hesamedgh","followers_url":"https://api.github.com/users/hesamedgh/followers","following_url":"https://api.github.com/users/hesamedgh/following{/other_user}","gists_url":"https://api.github.com/users/hesamedgh/gists{/gist_id}","starred_url":"https://api.github.com/users/hesamedgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hesamedgh/subscriptions","organizations_url":"https://api.github.com/users/hesamedgh/orgs","repos_url":"https://api.github.com/users/hesamedgh/repos","events_url":"https://api.github.com/users/hesamedgh/events{/privacy}","received_events_url":"https://api.github.com/users/hesamedgh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-18T16:03:37Z","updated_at":"2016-12-18T16:03:37Z","closed_at":null,"body":"hello guys!\r\nI have an issue when trying to run create initial revisions, after installing and migrating the package.\r\nthe error is \"AttributeError: '_Str' object has no attribute 'null'\". \r\nFull Error:\r\n`Traceback (most recent call last):\r\n  File \"manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py\", line 338, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py\", line 330, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/core/management/base.py\", line 390, in run_from_argv\r\n    self.execute(*args, **cmd_options)\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/core/management/base.py\", line 441, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/usr/local/lib/python3.4/dist-packages/reversion/management/commands/createinitialrevisions.py\", line 51, in handle\r\n    \"object_id\",\r\n  File \"/usr/local/lib/python3.4/dist-packages/reversion/models.py\", line 317, in _safe_subquery\r\n    \"{}__in\".format(left_field_name): right_subquery,\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/db/models/query.py\", line 686, in exclude\r\n    return self._filter_or_exclude(True, *args, **kwargs)\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/db/models/query.py\", line 695, in _filter_or_exclude\r\n    clone.query.add_q(~Q(*args, **kwargs))\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py\", line 1301, in add_q\r\n    clause, require_inner = self._add_q(where_part, self.used_aliases)\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py\", line 1328, in _add_q\r\n    current_negated=current_negated, connector=connector, allow_joins=allow_joins)\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py\", line 1222, in build_filter\r\n    self.is_nullable(targets[0]) or\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py\", line 2039, in is_nullable\r\n    return field.null\r\nAttributeError: '_Str' object has no attribute 'null'`\r\n\r\nit seems that its caused by calling _safe_subquery() in get_deleted of VersionQuerySet. it runs is_nullable on _Str object and raises the error.\r\n\r\ncant figure out how to solve this, any help is appreciated!\r\ntnx!\r\n  \r\n\r\n"}}
{"actor":{"display_login":"hesamedgh"}}