{"action":"opened","number":67,"pull_request":{"url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/pulls/67","id":40311299,"html_url":"https://github.com/djangonauts/django-rest-framework-gis/pull/67","diff_url":"https://github.com/djangonauts/django-rest-framework-gis/pull/67.diff","patch_url":"https://github.com/djangonauts/django-rest-framework-gis/pull/67.patch","issue_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/issues/67","number":67,"state":"open","locked":false,"title":"fixed False or empty string values","user":{"login":"pglotov","id":1294313,"avatar_url":"https://avatars.githubusercontent.com/u/1294313?v=3","gravatar_id":"","url":"https://api.github.com/users/pglotov","html_url":"https://github.com/pglotov","followers_url":"https://api.github.com/users/pglotov/followers","following_url":"https://api.github.com/users/pglotov/following{/other_user}","gists_url":"https://api.github.com/users/pglotov/gists{/gist_id}","starred_url":"https://api.github.com/users/pglotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pglotov/subscriptions","organizations_url":"https://api.github.com/users/pglotov/orgs","repos_url":"https://api.github.com/users/pglotov/repos","events_url":"https://api.github.com/users/pglotov/events{/privacy}","received_events_url":"https://api.github.com/users/pglotov/received_events","type":"User","site_admin":false},"body":"If one of instance fields has a value of `False` of '' (empty string) the serializer would translate those values to None which would in turn become `null` in json. This PR preserves correct field values.","created_at":"2015-07-19T16:54:31Z","updated_at":"2015-07-19T16:54:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/pulls/67/commits","review_comments_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/pulls/67/comments","review_comment_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/issues/67/comments","statuses_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/statuses/129e6e864b48913b68d49e9a8016d6e4c1ef25cb","head":{"label":"pglotov:fix/False-field-values","ref":"fix/False-field-values","sha":"129e6e864b48913b68d49e9a8016d6e4c1ef25cb","user":{"login":"pglotov","id":1294313,"avatar_url":"https://avatars.githubusercontent.com/u/1294313?v=3","gravatar_id":"","url":"https://api.github.com/users/pglotov","html_url":"https://github.com/pglotov","followers_url":"https://api.github.com/users/pglotov/followers","following_url":"https://api.github.com/users/pglotov/following{/other_user}","gists_url":"https://api.github.com/users/pglotov/gists{/gist_id}","starred_url":"https://api.github.com/users/pglotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pglotov/subscriptions","organizations_url":"https://api.github.com/users/pglotov/orgs","repos_url":"https://api.github.com/users/pglotov/repos","events_url":"https://api.github.com/users/pglotov/events{/privacy}","received_events_url":"https://api.github.com/users/pglotov/received_events","type":"User","site_admin":false},"repo":{"id":36206498,"name":"django-rest-framework-gis","full_name":"pglotov/django-rest-framework-gis","owner":{"login":"pglotov","id":1294313,"avatar_url":"https://avatars.githubusercontent.com/u/1294313?v=3","gravatar_id":"","url":"https://api.github.com/users/pglotov","html_url":"https://github.com/pglotov","followers_url":"https://api.github.com/users/pglotov/followers","following_url":"https://api.github.com/users/pglotov/following{/other_user}","gists_url":"https://api.github.com/users/pglotov/gists{/gist_id}","starred_url":"https://api.github.com/users/pglotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pglotov/subscriptions","organizations_url":"https://api.github.com/users/pglotov/orgs","repos_url":"https://api.github.com/users/pglotov/repos","events_url":"https://api.github.com/users/pglotov/events{/privacy}","received_events_url":"https://api.github.com/users/pglotov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pglotov/django-rest-framework-gis","description":"Geographic add-ons for Django Rest Framework","fork":true,"url":"https://api.github.com/repos/pglotov/django-rest-framework-gis","forks_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/forks","keys_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/teams","hooks_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/hooks","issue_events_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/issues/events{/number}","events_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/events","assignees_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/assignees{/user}","branches_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/branches{/branch}","tags_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/tags","blobs_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/git/refs{/sha}","trees_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/statuses/{sha}","languages_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/languages","stargazers_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/stargazers","contributors_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/contributors","subscribers_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/subscribers","subscription_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/subscription","commits_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/commits{/sha}","git_commits_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/git/commits{/sha}","comments_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/comments{/number}","issue_comment_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/issues/comments{/number}","contents_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/contents/{+path}","compare_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/merges","archive_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/downloads","issues_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/issues{/number}","pulls_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/pulls{/number}","milestones_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/milestones{/number}","notifications_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/labels{/name}","releases_url":"https://api.github.com/repos/pglotov/django-rest-framework-gis/releases{/id}","created_at":"2015-05-25T02:59:22Z","updated_at":"2015-05-25T02:59:23Z","pushed_at":"2015-07-19T16:52:19Z","git_url":"git://github.com/pglotov/django-rest-framework-gis.git","ssh_url":"git@github.com:pglotov/django-rest-framework-gis.git","clone_url":"https://github.com/pglotov/django-rest-framework-gis.git","svn_url":"https://github.com/pglotov/django-rest-framework-gis","homepage":null,"size":320,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"djangonauts:master","ref":"master","sha":"85ca4f55c01e4ae99cdb11dcd0050a8ac769672e","user":{"login":"djangonauts","id":6310186,"avatar_url":"https://avatars.githubusercontent.com/u/6310186?v=3","gravatar_id":"","url":"https://api.github.com/users/djangonauts","html_url":"https://github.com/djangonauts","followers_url":"https://api.github.com/users/djangonauts/followers","following_url":"https://api.github.com/users/djangonauts/following{/other_user}","gists_url":"https://api.github.com/users/djangonauts/gists{/gist_id}","starred_url":"https://api.github.com/users/djangonauts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djangonauts/subscriptions","organizations_url":"https://api.github.com/users/djangonauts/orgs","repos_url":"https://api.github.com/users/djangonauts/repos","events_url":"https://api.github.com/users/djangonauts/events{/privacy}","received_events_url":"https://api.github.com/users/djangonauts/received_events","type":"Organization","site_admin":false},"repo":{"id":7987095,"name":"django-rest-framework-gis","full_name":"djangonauts/django-rest-framework-gis","owner":{"login":"djangonauts","id":6310186,"avatar_url":"https://avatars.githubusercontent.com/u/6310186?v=3","gravatar_id":"","url":"https://api.github.com/users/djangonauts","html_url":"https://github.com/djangonauts","followers_url":"https://api.github.com/users/djangonauts/followers","following_url":"https://api.github.com/users/djangonauts/following{/other_user}","gists_url":"https://api.github.com/users/djangonauts/gists{/gist_id}","starred_url":"https://api.github.com/users/djangonauts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djangonauts/subscriptions","organizations_url":"https://api.github.com/users/djangonauts/orgs","repos_url":"https://api.github.com/users/djangonauts/repos","events_url":"https://api.github.com/users/djangonauts/events{/privacy}","received_events_url":"https://api.github.com/users/djangonauts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/djangonauts/django-rest-framework-gis","description":"Geographic add-ons for Django Rest Framework","fork":false,"url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis","forks_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/forks","keys_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/teams","hooks_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/hooks","issue_events_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/issues/events{/number}","events_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/events","assignees_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/assignees{/user}","branches_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/branches{/branch}","tags_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/tags","blobs_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/git/refs{/sha}","trees_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/statuses/{sha}","languages_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/languages","stargazers_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/stargazers","contributors_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/contributors","subscribers_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/subscribers","subscription_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/subscription","commits_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/commits{/sha}","git_commits_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/git/commits{/sha}","comments_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/comments{/number}","issue_comment_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/issues/comments{/number}","contents_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/contents/{+path}","compare_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/merges","archive_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/downloads","issues_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/issues{/number}","pulls_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/pulls{/number}","milestones_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/milestones{/number}","notifications_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/labels{/name}","releases_url":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/releases{/id}","created_at":"2013-02-03T06:11:25Z","updated_at":"2015-07-18T13:17:41Z","pushed_at":"2015-07-18T23:59:39Z","git_url":"git://github.com/djangonauts/django-rest-framework-gis.git","ssh_url":"git@github.com:djangonauts/django-rest-framework-gis.git","clone_url":"https://github.com/djangonauts/django-rest-framework-gis.git","svn_url":"https://github.com/djangonauts/django-rest-framework-gis","homepage":null,"size":945,"stargazers_count":193,"watchers_count":193,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":2,"forks":47,"open_issues":2,"watchers":193,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/pulls/67"},"html":{"href":"https://github.com/djangonauts/django-rest-framework-gis/pull/67"},"issue":{"href":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/issues/67"},"comments":{"href":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/djangonauts/django-rest-framework-gis/statuses/129e6e864b48913b68d49e9a8016d6e4c1ef25cb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}