{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/29320055","id":29320055,"diff_hunk":"@@ -11,4 +11,4 @@\n from django.contrib.gis.db.models.fields import (  # NOQA\n     GeometryField, PointField, LineStringField, PolygonField,\n     MultiPointField, MultiLineStringField, MultiPolygonField,\n-    GeometryCollectionField)\n+    GeometryCollectionField, RasterField)","path":"django/contrib/gis/db/models/__init__.py","position":5,"original_position":5,"commit_id":"995239aa8595954dad2668a064f07df53e7ed50e","original_commit_id":"25dbb7a059a9122865bcb81712d1d73f29f79eda","user":{"login":"claudep","id":143192,"avatar_url":"https://avatars.githubusercontent.com/u/143192?v=3","gravatar_id":"","url":"https://api.github.com/users/claudep","html_url":"https://github.com/claudep","followers_url":"https://api.github.com/users/claudep/followers","following_url":"https://api.github.com/users/claudep/following{/other_user}","gists_url":"https://api.github.com/users/claudep/gists{/gist_id}","starred_url":"https://api.github.com/users/claudep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudep/subscriptions","organizations_url":"https://api.github.com/users/claudep/orgs","repos_url":"https://api.github.com/users/claudep/repos","events_url":"https://api.github.com/users/claudep/events{/privacy}","received_events_url":"https://api.github.com/users/claudep/received_events","type":"User","site_admin":false},"body":"Indeed, the idea is to not fail at import time as much as possible. However, it's not really feasible in `__init__`, because `djang.db.connection` represents only the `default` connection, and you don't know at this stage for which connection the field is created (it might be that the `postgis` database is not the default one). So you have to delay the check to a later stage, in a method which receives a `connection` object.","created_at":"2015-04-29T09:08:11Z","updated_at":"2015-04-29T09:08:11Z","html_url":"https://github.com/django/django/pull/4339#discussion_r29320055","pull_request_url":"https://api.github.com/repos/django/django/pulls/4339","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/29320055"},"html":{"href":"https://github.com/django/django/pull/4339#discussion_r29320055"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/4339"}}},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/4339","id":31332442,"html_url":"https://github.com/django/django/pull/4339","diff_url":"https://github.com/django/django/pull/4339.diff","patch_url":"https://github.com/django/django/pull/4339.patch","issue_url":"https://api.github.com/repos/django/django/issues/4339","number":4339,"state":"open","locked":false,"title":"RasterField for PostGIS backends","user":{"login":"yellowcap","id":901647,"avatar_url":"https://avatars.githubusercontent.com/u/901647?v=3","gravatar_id":"","url":"https://api.github.com/users/yellowcap","html_url":"https://github.com/yellowcap","followers_url":"https://api.github.com/users/yellowcap/followers","following_url":"https://api.github.com/users/yellowcap/following{/other_user}","gists_url":"https://api.github.com/users/yellowcap/gists{/gist_id}","starred_url":"https://api.github.com/users/yellowcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yellowcap/subscriptions","organizations_url":"https://api.github.com/users/yellowcap/orgs","repos_url":"https://api.github.com/users/yellowcap/repos","events_url":"https://api.github.com/users/yellowcap/events{/privacy}","received_events_url":"https://api.github.com/users/yellowcap/received_events","type":"User","site_admin":false},"body":"- I think this  be for PostGIS >= 2.0 only, but I am not sure how to check for that\r\n- Lacks documentation since its a first draft\r\n- Very basic testing, needs more complete tests.\r\n\r\nRefs #23804.","created_at":"2015-03-17T13:01:16Z","updated_at":"2015-04-29T09:08:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7464d287344c78aa71e2e2ebd8f1f7d824dd6aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/4339/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/4339/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/4339/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/995239aa8595954dad2668a064f07df53e7ed50e","head":{"label":"geodesign:raster_field","ref":"raster_field","sha":"995239aa8595954dad2668a064f07df53e7ed50e","user":{"login":"geodesign","id":8367349,"avatar_url":"https://avatars.githubusercontent.com/u/8367349?v=3","gravatar_id":"","url":"https://api.github.com/users/geodesign","html_url":"https://github.com/geodesign","followers_url":"https://api.github.com/users/geodesign/followers","following_url":"https://api.github.com/users/geodesign/following{/other_user}","gists_url":"https://api.github.com/users/geodesign/gists{/gist_id}","starred_url":"https://api.github.com/users/geodesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geodesign/subscriptions","organizations_url":"https://api.github.com/users/geodesign/orgs","repos_url":"https://api.github.com/users/geodesign/repos","events_url":"https://api.github.com/users/geodesign/events{/privacy}","received_events_url":"https://api.github.com/users/geodesign/received_events","type":"Organization","site_admin":false},"repo":{"id":26547832,"name":"django","full_name":"geodesign/django","owner":{"login":"geodesign","id":8367349,"avatar_url":"https://avatars.githubusercontent.com/u/8367349?v=3","gravatar_id":"","url":"https://api.github.com/users/geodesign","html_url":"https://github.com/geodesign","followers_url":"https://api.github.com/users/geodesign/followers","following_url":"https://api.github.com/users/geodesign/following{/other_user}","gists_url":"https://api.github.com/users/geodesign/gists{/gist_id}","starred_url":"https://api.github.com/users/geodesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geodesign/subscriptions","organizations_url":"https://api.github.com/users/geodesign/orgs","repos_url":"https://api.github.com/users/geodesign/repos","events_url":"https://api.github.com/users/geodesign/events{/privacy}","received_events_url":"https://api.github.com/users/geodesign/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geodesign/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/geodesign/django","forks_url":"https://api.github.com/repos/geodesign/django/forks","keys_url":"https://api.github.com/repos/geodesign/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geodesign/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geodesign/django/teams","hooks_url":"https://api.github.com/repos/geodesign/django/hooks","issue_events_url":"https://api.github.com/repos/geodesign/django/issues/events{/number}","events_url":"https://api.github.com/repos/geodesign/django/events","assignees_url":"https://api.github.com/repos/geodesign/django/assignees{/user}","branches_url":"https://api.github.com/repos/geodesign/django/branches{/branch}","tags_url":"https://api.github.com/repos/geodesign/django/tags","blobs_url":"https://api.github.com/repos/geodesign/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geodesign/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geodesign/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/geodesign/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geodesign/django/statuses/{sha}","languages_url":"https://api.github.com/repos/geodesign/django/languages","stargazers_url":"https://api.github.com/repos/geodesign/django/stargazers","contributors_url":"https://api.github.com/repos/geodesign/django/contributors","subscribers_url":"https://api.github.com/repos/geodesign/django/subscribers","subscription_url":"https://api.github.com/repos/geodesign/django/subscription","commits_url":"https://api.github.com/repos/geodesign/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/geodesign/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/geodesign/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/geodesign/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/geodesign/django/contents/{+path}","compare_url":"https://api.github.com/repos/geodesign/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geodesign/django/merges","archive_url":"https://api.github.com/repos/geodesign/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geodesign/django/downloads","issues_url":"https://api.github.com/repos/geodesign/django/issues{/number}","pulls_url":"https://api.github.com/repos/geodesign/django/pulls{/number}","milestones_url":"https://api.github.com/repos/geodesign/django/milestones{/number}","notifications_url":"https://api.github.com/repos/geodesign/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geodesign/django/labels{/name}","releases_url":"https://api.github.com/repos/geodesign/django/releases{/id}","created_at":"2014-11-12T17:35:51Z","updated_at":"2015-04-27T08:58:47Z","pushed_at":"2015-04-29T08:24:06Z","git_url":"git://github.com/geodesign/django.git","ssh_url":"git@github.com:geodesign/django.git","clone_url":"https://github.com/geodesign/django.git","svn_url":"https://github.com/geodesign/django","homepage":"https://www.djangoproject.com/","size":128156,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"django:master","ref":"master","sha":"25b52d04f6eace3b702adf7c6ab68daf1867c7e3","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":4164482,"name":"django","full_name":"django/django","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django","description":"The Web framework for perfectionists with deadlines.","fork":false,"url":"https://api.github.com/repos/django/django","forks_url":"https://api.github.com/repos/django/django/forks","keys_url":"https://api.github.com/repos/django/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django/teams","hooks_url":"https://api.github.com/repos/django/django/hooks","issue_events_url":"https://api.github.com/repos/django/django/issues/events{/number}","events_url":"https://api.github.com/repos/django/django/events","assignees_url":"https://api.github.com/repos/django/django/assignees{/user}","branches_url":"https://api.github.com/repos/django/django/branches{/branch}","tags_url":"https://api.github.com/repos/django/django/tags","blobs_url":"https://api.github.com/repos/django/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django/languages","stargazers_url":"https://api.github.com/repos/django/django/stargazers","contributors_url":"https://api.github.com/repos/django/django/contributors","subscribers_url":"https://api.github.com/repos/django/django/subscribers","subscription_url":"https://api.github.com/repos/django/django/subscription","commits_url":"https://api.github.com/repos/django/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django/contents/{+path}","compare_url":"https://api.github.com/repos/django/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django/merges","archive_url":"https://api.github.com/repos/django/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django/downloads","issues_url":"https://api.github.com/repos/django/django/issues{/number}","pulls_url":"https://api.github.com/repos/django/django/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django/labels{/name}","releases_url":"https://api.github.com/repos/django/django/releases{/id}","created_at":"2012-04-28T02:47:18Z","updated_at":"2015-04-29T07:38:48Z","pushed_at":"2015-04-29T08:24:15Z","git_url":"git://github.com/django/django.git","ssh_url":"git@github.com:django/django.git","clone_url":"https://github.com/django/django.git","svn_url":"https://github.com/django/django","homepage":"https://www.djangoproject.com/","size":288248,"stargazers_count":13977,"watchers_count":13977,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5555,"mirror_url":null,"open_issues_count":71,"forks":5555,"open_issues":71,"watchers":13977,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/4339"},"html":{"href":"https://github.com/django/django/pull/4339"},"issue":{"href":"https://api.github.com/repos/django/django/issues/4339"},"comments":{"href":"https://api.github.com/repos/django/django/issues/4339/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/4339/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/4339/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/995239aa8595954dad2668a064f07df53e7ed50e"}}}}