{"action":"created","comment":{"url":"https://api.github.com/repos/alex/django-taggit/pulls/comments/38461166","id":38461166,"diff_hunk":"@@ -321,10 +328,19 @@ def deconstruct(self):\n             kwargs['through'] = self.rel.through\n         elif not self.rel.through._meta.auto_created:\n             kwargs['through'] = \"%s.%s\" % (self.rel.through._meta.app_label, self.rel.through._meta.object_name)\n-        if isinstance(self.rel.to, six.string_types):\n-            kwargs['to'] = self.rel.to\n+\n+        # rel.to renamed to rel.model in Django 1.9\n+        if VERSION >= (1, 9):\n+            if isinstance(self.rel.model, six.string_types):","path":"taggit/managers.py","position":41,"original_position":41,"commit_id":"2688da6f01e075f0f6c6d08902357491b08b0323","original_commit_id":"2688da6f01e075f0f6c6d08902357491b08b0323","user":{"login":"collinanderson","id":129234,"avatar_url":"https://avatars.githubusercontent.com/u/129234?v=3","gravatar_id":"","url":"https://api.github.com/users/collinanderson","html_url":"https://github.com/collinanderson","followers_url":"https://api.github.com/users/collinanderson/followers","following_url":"https://api.github.com/users/collinanderson/following{/other_user}","gists_url":"https://api.github.com/users/collinanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/collinanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collinanderson/subscriptions","organizations_url":"https://api.github.com/users/collinanderson/orgs","repos_url":"https://api.github.com/users/collinanderson/repos","events_url":"https://api.github.com/users/collinanderson/events{/privacy}","received_events_url":"https://api.github.com/users/collinanderson/received_events","type":"User","site_admin":false},"body":"I get a warning: \"Usage of field.rel has been deprecated. Use field.remote_field instead.\" I think it should be safe to do `self.remote_field.model` here because it's in the 1.9+ branch.","created_at":"2015-09-01T19:32:37Z","updated_at":"2015-09-01T19:32:37Z","html_url":"https://github.com/alex/django-taggit/pull/329#discussion_r38461166","pull_request_url":"https://api.github.com/repos/alex/django-taggit/pulls/329","_links":{"self":{"href":"https://api.github.com/repos/alex/django-taggit/pulls/comments/38461166"},"html":{"href":"https://github.com/alex/django-taggit/pull/329#discussion_r38461166"},"pull_request":{"href":"https://api.github.com/repos/alex/django-taggit/pulls/329"}}},"pull_request":{"url":"https://api.github.com/repos/alex/django-taggit/pulls/329","id":39891534,"html_url":"https://github.com/alex/django-taggit/pull/329","diff_url":"https://github.com/alex/django-taggit/pull/329.diff","patch_url":"https://github.com/alex/django-taggit/pull/329.patch","issue_url":"https://api.github.com/repos/alex/django-taggit/issues/329","number":329,"state":"open","locked":false,"title":"Some early Django 1.9 compatibility fixes","user":{"login":"kaedroho","id":1093808,"avatar_url":"https://avatars.githubusercontent.com/u/1093808?v=3","gravatar_id":"","url":"https://api.github.com/users/kaedroho","html_url":"https://github.com/kaedroho","followers_url":"https://api.github.com/users/kaedroho/followers","following_url":"https://api.github.com/users/kaedroho/following{/other_user}","gists_url":"https://api.github.com/users/kaedroho/gists{/gist_id}","starred_url":"https://api.github.com/users/kaedroho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaedroho/subscriptions","organizations_url":"https://api.github.com/users/kaedroho/orgs","repos_url":"https://api.github.com/users/kaedroho/repos","events_url":"https://api.github.com/users/kaedroho/events{/privacy}","received_events_url":"https://api.github.com/users/kaedroho/received_events","type":"User","site_admin":false},"body":"All tests pass when running against the latest Django master branch https://github.com/django/django/commits/8f8c54f70bfa3aa8e311514297f1eeded2c32593\r\n\r\nDjango 1.9 compatibility will probably break some more before the release, but I think this branch might be useful for people who want to do some early testing.","created_at":"2015-07-14T08:12:48Z","updated_at":"2015-09-01T19:32:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63655806c28a082de20452c13b7063b55d810ed8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alex/django-taggit/pulls/329/commits","review_comments_url":"https://api.github.com/repos/alex/django-taggit/pulls/329/comments","review_comment_url":"https://api.github.com/repos/alex/django-taggit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alex/django-taggit/issues/329/comments","statuses_url":"https://api.github.com/repos/alex/django-taggit/statuses/2688da6f01e075f0f6c6d08902357491b08b0323","head":{"label":"kaedroho:dj19","ref":"dj19","sha":"2688da6f01e075f0f6c6d08902357491b08b0323","user":{"login":"kaedroho","id":1093808,"avatar_url":"https://avatars.githubusercontent.com/u/1093808?v=3","gravatar_id":"","url":"https://api.github.com/users/kaedroho","html_url":"https://github.com/kaedroho","followers_url":"https://api.github.com/users/kaedroho/followers","following_url":"https://api.github.com/users/kaedroho/following{/other_user}","gists_url":"https://api.github.com/users/kaedroho/gists{/gist_id}","starred_url":"https://api.github.com/users/kaedroho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaedroho/subscriptions","organizations_url":"https://api.github.com/users/kaedroho/orgs","repos_url":"https://api.github.com/users/kaedroho/repos","events_url":"https://api.github.com/users/kaedroho/events{/privacy}","received_events_url":"https://api.github.com/users/kaedroho/received_events","type":"User","site_admin":false},"repo":{"id":32258198,"name":"django-taggit","full_name":"kaedroho/django-taggit","owner":{"login":"kaedroho","id":1093808,"avatar_url":"https://avatars.githubusercontent.com/u/1093808?v=3","gravatar_id":"","url":"https://api.github.com/users/kaedroho","html_url":"https://github.com/kaedroho","followers_url":"https://api.github.com/users/kaedroho/followers","following_url":"https://api.github.com/users/kaedroho/following{/other_user}","gists_url":"https://api.github.com/users/kaedroho/gists{/gist_id}","starred_url":"https://api.github.com/users/kaedroho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaedroho/subscriptions","organizations_url":"https://api.github.com/users/kaedroho/orgs","repos_url":"https://api.github.com/users/kaedroho/repos","events_url":"https://api.github.com/users/kaedroho/events{/privacy}","received_events_url":"https://api.github.com/users/kaedroho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaedroho/django-taggit","description":"Simple tagging for django","fork":true,"url":"https://api.github.com/repos/kaedroho/django-taggit","forks_url":"https://api.github.com/repos/kaedroho/django-taggit/forks","keys_url":"https://api.github.com/repos/kaedroho/django-taggit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaedroho/django-taggit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaedroho/django-taggit/teams","hooks_url":"https://api.github.com/repos/kaedroho/django-taggit/hooks","issue_events_url":"https://api.github.com/repos/kaedroho/django-taggit/issues/events{/number}","events_url":"https://api.github.com/repos/kaedroho/django-taggit/events","assignees_url":"https://api.github.com/repos/kaedroho/django-taggit/assignees{/user}","branches_url":"https://api.github.com/repos/kaedroho/django-taggit/branches{/branch}","tags_url":"https://api.github.com/repos/kaedroho/django-taggit/tags","blobs_url":"https://api.github.com/repos/kaedroho/django-taggit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaedroho/django-taggit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaedroho/django-taggit/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaedroho/django-taggit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaedroho/django-taggit/statuses/{sha}","languages_url":"https://api.github.com/repos/kaedroho/django-taggit/languages","stargazers_url":"https://api.github.com/repos/kaedroho/django-taggit/stargazers","contributors_url":"https://api.github.com/repos/kaedroho/django-taggit/contributors","subscribers_url":"https://api.github.com/repos/kaedroho/django-taggit/subscribers","subscription_url":"https://api.github.com/repos/kaedroho/django-taggit/subscription","commits_url":"https://api.github.com/repos/kaedroho/django-taggit/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaedroho/django-taggit/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaedroho/django-taggit/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaedroho/django-taggit/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaedroho/django-taggit/contents/{+path}","compare_url":"https://api.github.com/repos/kaedroho/django-taggit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaedroho/django-taggit/merges","archive_url":"https://api.github.com/repos/kaedroho/django-taggit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaedroho/django-taggit/downloads","issues_url":"https://api.github.com/repos/kaedroho/django-taggit/issues{/number}","pulls_url":"https://api.github.com/repos/kaedroho/django-taggit/pulls{/number}","milestones_url":"https://api.github.com/repos/kaedroho/django-taggit/milestones{/number}","notifications_url":"https://api.github.com/repos/kaedroho/django-taggit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaedroho/django-taggit/labels{/name}","releases_url":"https://api.github.com/repos/kaedroho/django-taggit/releases{/id}","created_at":"2015-03-15T11:57:20Z","updated_at":"2015-03-15T11:57:21Z","pushed_at":"2015-07-14T08:13:16Z","git_url":"git://github.com/kaedroho/django-taggit.git","ssh_url":"git@github.com:kaedroho/django-taggit.git","clone_url":"https://github.com/kaedroho/django-taggit.git","svn_url":"https://github.com/kaedroho/django-taggit","homepage":"http://django-taggit.readthedocs.org/","size":592,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"alex:develop","ref":"develop","sha":"f272a6de61c16d5193faa8966c7e6b2c62203143","user":{"login":"alex","id":772,"avatar_url":"https://avatars.githubusercontent.com/u/772?v=3","gravatar_id":"","url":"https://api.github.com/users/alex","html_url":"https://github.com/alex","followers_url":"https://api.github.com/users/alex/followers","following_url":"https://api.github.com/users/alex/following{/other_user}","gists_url":"https://api.github.com/users/alex/gists{/gist_id}","starred_url":"https://api.github.com/users/alex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex/subscriptions","organizations_url":"https://api.github.com/users/alex/orgs","repos_url":"https://api.github.com/users/alex/repos","events_url":"https://api.github.com/users/alex/events{/privacy}","received_events_url":"https://api.github.com/users/alex/received_events","type":"User","site_admin":false},"repo":{"id":409101,"name":"django-taggit","full_name":"alex/django-taggit","owner":{"login":"alex","id":772,"avatar_url":"https://avatars.githubusercontent.com/u/772?v=3","gravatar_id":"","url":"https://api.github.com/users/alex","html_url":"https://github.com/alex","followers_url":"https://api.github.com/users/alex/followers","following_url":"https://api.github.com/users/alex/following{/other_user}","gists_url":"https://api.github.com/users/alex/gists{/gist_id}","starred_url":"https://api.github.com/users/alex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex/subscriptions","organizations_url":"https://api.github.com/users/alex/orgs","repos_url":"https://api.github.com/users/alex/repos","events_url":"https://api.github.com/users/alex/events{/privacy}","received_events_url":"https://api.github.com/users/alex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alex/django-taggit","description":"Simple tagging for django","fork":false,"url":"https://api.github.com/repos/alex/django-taggit","forks_url":"https://api.github.com/repos/alex/django-taggit/forks","keys_url":"https://api.github.com/repos/alex/django-taggit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alex/django-taggit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alex/django-taggit/teams","hooks_url":"https://api.github.com/repos/alex/django-taggit/hooks","issue_events_url":"https://api.github.com/repos/alex/django-taggit/issues/events{/number}","events_url":"https://api.github.com/repos/alex/django-taggit/events","assignees_url":"https://api.github.com/repos/alex/django-taggit/assignees{/user}","branches_url":"https://api.github.com/repos/alex/django-taggit/branches{/branch}","tags_url":"https://api.github.com/repos/alex/django-taggit/tags","blobs_url":"https://api.github.com/repos/alex/django-taggit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alex/django-taggit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alex/django-taggit/git/refs{/sha}","trees_url":"https://api.github.com/repos/alex/django-taggit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alex/django-taggit/statuses/{sha}","languages_url":"https://api.github.com/repos/alex/django-taggit/languages","stargazers_url":"https://api.github.com/repos/alex/django-taggit/stargazers","contributors_url":"https://api.github.com/repos/alex/django-taggit/contributors","subscribers_url":"https://api.github.com/repos/alex/django-taggit/subscribers","subscription_url":"https://api.github.com/repos/alex/django-taggit/subscription","commits_url":"https://api.github.com/repos/alex/django-taggit/commits{/sha}","git_commits_url":"https://api.github.com/repos/alex/django-taggit/git/commits{/sha}","comments_url":"https://api.github.com/repos/alex/django-taggit/comments{/number}","issue_comment_url":"https://api.github.com/repos/alex/django-taggit/issues/comments{/number}","contents_url":"https://api.github.com/repos/alex/django-taggit/contents/{+path}","compare_url":"https://api.github.com/repos/alex/django-taggit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alex/django-taggit/merges","archive_url":"https://api.github.com/repos/alex/django-taggit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alex/django-taggit/downloads","issues_url":"https://api.github.com/repos/alex/django-taggit/issues{/number}","pulls_url":"https://api.github.com/repos/alex/django-taggit/pulls{/number}","milestones_url":"https://api.github.com/repos/alex/django-taggit/milestones{/number}","notifications_url":"https://api.github.com/repos/alex/django-taggit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alex/django-taggit/labels{/name}","releases_url":"https://api.github.com/repos/alex/django-taggit/releases{/id}","created_at":"2009-12-08T23:40:49Z","updated_at":"2015-09-01T14:13:05Z","pushed_at":"2015-09-01T19:22:04Z","git_url":"git://github.com/alex/django-taggit.git","ssh_url":"git@github.com:alex/django-taggit.git","clone_url":"https://github.com/alex/django-taggit.git","svn_url":"https://github.com/alex/django-taggit","homepage":"http://django-taggit.readthedocs.org/","size":1766,"stargazers_count":1313,"watchers_count":1313,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":373,"mirror_url":null,"open_issues_count":88,"forks":373,"open_issues":88,"watchers":1313,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/alex/django-taggit/pulls/329"},"html":{"href":"https://github.com/alex/django-taggit/pull/329"},"issue":{"href":"https://api.github.com/repos/alex/django-taggit/issues/329"},"comments":{"href":"https://api.github.com/repos/alex/django-taggit/issues/329/comments"},"review_comments":{"href":"https://api.github.com/repos/alex/django-taggit/pulls/329/comments"},"review_comment":{"href":"https://api.github.com/repos/alex/django-taggit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alex/django-taggit/pulls/329/commits"},"statuses":{"href":"https://api.github.com/repos/alex/django-taggit/statuses/2688da6f01e075f0f6c6d08902357491b08b0323"}}}}