{"action":"closed","number":2493,"pull_request":{"url":"https://api.github.com/repos/GeoNode/geonode/pulls/2493","id":73101880,"html_url":"https://github.com/GeoNode/geonode/pull/2493","diff_url":"https://github.com/GeoNode/geonode/pull/2493.diff","patch_url":"https://github.com/GeoNode/geonode/pull/2493.patch","issue_url":"https://api.github.com/repos/GeoNode/geonode/issues/2493","number":2493,"state":"closed","locked":false,"title":"Use DjangoJSONEncoder when we need to handle Decimal types","user":{"login":"sarasafavi","id":1209376,"avatar_url":"https://avatars.githubusercontent.com/u/1209376?v=3","gravatar_id":"","url":"https://api.github.com/users/sarasafavi","html_url":"https://github.com/sarasafavi","followers_url":"https://api.github.com/users/sarasafavi/followers","following_url":"https://api.github.com/users/sarasafavi/following{/other_user}","gists_url":"https://api.github.com/users/sarasafavi/gists{/gist_id}","starred_url":"https://api.github.com/users/sarasafavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarasafavi/subscriptions","organizations_url":"https://api.github.com/users/sarasafavi/orgs","repos_url":"https://api.github.com/users/sarasafavi/repos","events_url":"https://api.github.com/users/sarasafavi/events{/privacy}","received_events_url":"https://api.github.com/users/sarasafavi/received_events","type":"User","site_admin":false},"body":"*Related: https://github.com/GeoNode/geonode/issues/2430*\r\n\r\nDjango 1.7+ dropped simplejson in favor of vanilla json -- this is mostly fine, except in some edge cases. One such case is `decimal.Decimal` types: standard library json doesn't handle serializing these by default.\r\n\r\nDjangoJSONEncoder covers this, and using it where needed fixes the problem. The encoder+decimal handling [exists in Django 1.6](https://github.com/django/django/blob/stable/1.6.x/django/core/serializers/json.py#L101-102) so users on an old version should still be fine.","created_at":"2016-06-08T19:02:28Z","updated_at":"2016-06-08T19:23:45Z","closed_at":"2016-06-08T19:23:45Z","merged_at":"2016-06-08T19:23:45Z","merge_commit_sha":"52d2a7026e4295dd69c9c792e35d57d80206286c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GeoNode/geonode/pulls/2493/commits","review_comments_url":"https://api.github.com/repos/GeoNode/geonode/pulls/2493/comments","review_comment_url":"https://api.github.com/repos/GeoNode/geonode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GeoNode/geonode/issues/2493/comments","statuses_url":"https://api.github.com/repos/GeoNode/geonode/statuses/ea9e5d43cfe00ec4acfb8fdb3790079da8b40ccb","head":{"label":"sarasafavi:NODE140-fix-json-serializer","ref":"NODE140-fix-json-serializer","sha":"ea9e5d43cfe00ec4acfb8fdb3790079da8b40ccb","user":{"login":"sarasafavi","id":1209376,"avatar_url":"https://avatars.githubusercontent.com/u/1209376?v=3","gravatar_id":"","url":"https://api.github.com/users/sarasafavi","html_url":"https://github.com/sarasafavi","followers_url":"https://api.github.com/users/sarasafavi/followers","following_url":"https://api.github.com/users/sarasafavi/following{/other_user}","gists_url":"https://api.github.com/users/sarasafavi/gists{/gist_id}","starred_url":"https://api.github.com/users/sarasafavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarasafavi/subscriptions","organizations_url":"https://api.github.com/users/sarasafavi/orgs","repos_url":"https://api.github.com/users/sarasafavi/repos","events_url":"https://api.github.com/users/sarasafavi/events{/privacy}","received_events_url":"https://api.github.com/users/sarasafavi/received_events","type":"User","site_admin":false},"repo":{"id":60722436,"name":"geonode","full_name":"sarasafavi/geonode","owner":{"login":"sarasafavi","id":1209376,"avatar_url":"https://avatars.githubusercontent.com/u/1209376?v=3","gravatar_id":"","url":"https://api.github.com/users/sarasafavi","html_url":"https://github.com/sarasafavi","followers_url":"https://api.github.com/users/sarasafavi/followers","following_url":"https://api.github.com/users/sarasafavi/following{/other_user}","gists_url":"https://api.github.com/users/sarasafavi/gists{/gist_id}","starred_url":"https://api.github.com/users/sarasafavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarasafavi/subscriptions","organizations_url":"https://api.github.com/users/sarasafavi/orgs","repos_url":"https://api.github.com/users/sarasafavi/repos","events_url":"https://api.github.com/users/sarasafavi/events{/privacy}","received_events_url":"https://api.github.com/users/sarasafavi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sarasafavi/geonode","description":"GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.","fork":true,"url":"https://api.github.com/repos/sarasafavi/geonode","forks_url":"https://api.github.com/repos/sarasafavi/geonode/forks","keys_url":"https://api.github.com/repos/sarasafavi/geonode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sarasafavi/geonode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sarasafavi/geonode/teams","hooks_url":"https://api.github.com/repos/sarasafavi/geonode/hooks","issue_events_url":"https://api.github.com/repos/sarasafavi/geonode/issues/events{/number}","events_url":"https://api.github.com/repos/sarasafavi/geonode/events","assignees_url":"https://api.github.com/repos/sarasafavi/geonode/assignees{/user}","branches_url":"https://api.github.com/repos/sarasafavi/geonode/branches{/branch}","tags_url":"https://api.github.com/repos/sarasafavi/geonode/tags","blobs_url":"https://api.github.com/repos/sarasafavi/geonode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sarasafavi/geonode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sarasafavi/geonode/git/refs{/sha}","trees_url":"https://api.github.com/repos/sarasafavi/geonode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sarasafavi/geonode/statuses/{sha}","languages_url":"https://api.github.com/repos/sarasafavi/geonode/languages","stargazers_url":"https://api.github.com/repos/sarasafavi/geonode/stargazers","contributors_url":"https://api.github.com/repos/sarasafavi/geonode/contributors","subscribers_url":"https://api.github.com/repos/sarasafavi/geonode/subscribers","subscription_url":"https://api.github.com/repos/sarasafavi/geonode/subscription","commits_url":"https://api.github.com/repos/sarasafavi/geonode/commits{/sha}","git_commits_url":"https://api.github.com/repos/sarasafavi/geonode/git/commits{/sha}","comments_url":"https://api.github.com/repos/sarasafavi/geonode/comments{/number}","issue_comment_url":"https://api.github.com/repos/sarasafavi/geonode/issues/comments{/number}","contents_url":"https://api.github.com/repos/sarasafavi/geonode/contents/{+path}","compare_url":"https://api.github.com/repos/sarasafavi/geonode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sarasafavi/geonode/merges","archive_url":"https://api.github.com/repos/sarasafavi/geonode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sarasafavi/geonode/downloads","issues_url":"https://api.github.com/repos/sarasafavi/geonode/issues{/number}","pulls_url":"https://api.github.com/repos/sarasafavi/geonode/pulls{/number}","milestones_url":"https://api.github.com/repos/sarasafavi/geonode/milestones{/number}","notifications_url":"https://api.github.com/repos/sarasafavi/geonode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sarasafavi/geonode/labels{/name}","releases_url":"https://api.github.com/repos/sarasafavi/geonode/releases{/id}","deployments_url":"https://api.github.com/repos/sarasafavi/geonode/deployments","created_at":"2016-06-08T18:53:53Z","updated_at":"2016-06-08T18:53:58Z","pushed_at":"2016-06-08T19:01:28Z","git_url":"git://github.com/sarasafavi/geonode.git","ssh_url":"git@github.com:sarasafavi/geonode.git","clone_url":"https://github.com/sarasafavi/geonode.git","svn_url":"https://github.com/sarasafavi/geonode","homepage":"http://geonode.org/","size":133891,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"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":"master"}},"base":{"label":"GeoNode:master","ref":"master","sha":"447c5fd617c2ae4426a94ccf5c05c7386b996642","user":{"login":"GeoNode","id":132843,"avatar_url":"https://avatars.githubusercontent.com/u/132843?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoNode","html_url":"https://github.com/GeoNode","followers_url":"https://api.github.com/users/GeoNode/followers","following_url":"https://api.github.com/users/GeoNode/following{/other_user}","gists_url":"https://api.github.com/users/GeoNode/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoNode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoNode/subscriptions","organizations_url":"https://api.github.com/users/GeoNode/orgs","repos_url":"https://api.github.com/users/GeoNode/repos","events_url":"https://api.github.com/users/GeoNode/events{/privacy}","received_events_url":"https://api.github.com/users/GeoNode/received_events","type":"Organization","site_admin":false},"repo":{"id":701765,"name":"geonode","full_name":"GeoNode/geonode","owner":{"login":"GeoNode","id":132843,"avatar_url":"https://avatars.githubusercontent.com/u/132843?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoNode","html_url":"https://github.com/GeoNode","followers_url":"https://api.github.com/users/GeoNode/followers","following_url":"https://api.github.com/users/GeoNode/following{/other_user}","gists_url":"https://api.github.com/users/GeoNode/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoNode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoNode/subscriptions","organizations_url":"https://api.github.com/users/GeoNode/orgs","repos_url":"https://api.github.com/users/GeoNode/repos","events_url":"https://api.github.com/users/GeoNode/events{/privacy}","received_events_url":"https://api.github.com/users/GeoNode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GeoNode/geonode","description":"GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.","fork":false,"url":"https://api.github.com/repos/GeoNode/geonode","forks_url":"https://api.github.com/repos/GeoNode/geonode/forks","keys_url":"https://api.github.com/repos/GeoNode/geonode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeoNode/geonode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeoNode/geonode/teams","hooks_url":"https://api.github.com/repos/GeoNode/geonode/hooks","issue_events_url":"https://api.github.com/repos/GeoNode/geonode/issues/events{/number}","events_url":"https://api.github.com/repos/GeoNode/geonode/events","assignees_url":"https://api.github.com/repos/GeoNode/geonode/assignees{/user}","branches_url":"https://api.github.com/repos/GeoNode/geonode/branches{/branch}","tags_url":"https://api.github.com/repos/GeoNode/geonode/tags","blobs_url":"https://api.github.com/repos/GeoNode/geonode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeoNode/geonode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeoNode/geonode/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeoNode/geonode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeoNode/geonode/statuses/{sha}","languages_url":"https://api.github.com/repos/GeoNode/geonode/languages","stargazers_url":"https://api.github.com/repos/GeoNode/geonode/stargazers","contributors_url":"https://api.github.com/repos/GeoNode/geonode/contributors","subscribers_url":"https://api.github.com/repos/GeoNode/geonode/subscribers","subscription_url":"https://api.github.com/repos/GeoNode/geonode/subscription","commits_url":"https://api.github.com/repos/GeoNode/geonode/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeoNode/geonode/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeoNode/geonode/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeoNode/geonode/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeoNode/geonode/contents/{+path}","compare_url":"https://api.github.com/repos/GeoNode/geonode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeoNode/geonode/merges","archive_url":"https://api.github.com/repos/GeoNode/geonode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeoNode/geonode/downloads","issues_url":"https://api.github.com/repos/GeoNode/geonode/issues{/number}","pulls_url":"https://api.github.com/repos/GeoNode/geonode/pulls{/number}","milestones_url":"https://api.github.com/repos/GeoNode/geonode/milestones{/number}","notifications_url":"https://api.github.com/repos/GeoNode/geonode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeoNode/geonode/labels{/name}","releases_url":"https://api.github.com/repos/GeoNode/geonode/releases{/id}","deployments_url":"https://api.github.com/repos/GeoNode/geonode/deployments","created_at":"2010-06-03T18:14:47Z","updated_at":"2016-06-08T03:20:07Z","pushed_at":"2016-06-08T19:23:45Z","git_url":"git://github.com/GeoNode/geonode.git","ssh_url":"git@github.com:GeoNode/geonode.git","clone_url":"https://github.com/GeoNode/geonode.git","svn_url":"https://github.com/GeoNode/geonode","homepage":"http://geonode.org/","size":163674,"stargazers_count":401,"watchers_count":401,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":369,"mirror_url":null,"open_issues_count":318,"forks":369,"open_issues":318,"watchers":401,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GeoNode/geonode/pulls/2493"},"html":{"href":"https://github.com/GeoNode/geonode/pull/2493"},"issue":{"href":"https://api.github.com/repos/GeoNode/geonode/issues/2493"},"comments":{"href":"https://api.github.com/repos/GeoNode/geonode/issues/2493/comments"},"review_comments":{"href":"https://api.github.com/repos/GeoNode/geonode/pulls/2493/comments"},"review_comment":{"href":"https://api.github.com/repos/GeoNode/geonode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GeoNode/geonode/pulls/2493/commits"},"statuses":{"href":"https://api.github.com/repos/GeoNode/geonode/statuses/ea9e5d43cfe00ec4acfb8fdb3790079da8b40ccb"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jj0hns0n","id":506078,"avatar_url":"https://avatars.githubusercontent.com/u/506078?v=3","gravatar_id":"","url":"https://api.github.com/users/jj0hns0n","html_url":"https://github.com/jj0hns0n","followers_url":"https://api.github.com/users/jj0hns0n/followers","following_url":"https://api.github.com/users/jj0hns0n/following{/other_user}","gists_url":"https://api.github.com/users/jj0hns0n/gists{/gist_id}","starred_url":"https://api.github.com/users/jj0hns0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jj0hns0n/subscriptions","organizations_url":"https://api.github.com/users/jj0hns0n/orgs","repos_url":"https://api.github.com/users/jj0hns0n/repos","events_url":"https://api.github.com/users/jj0hns0n/events{/privacy}","received_events_url":"https://api.github.com/users/jj0hns0n/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"jj0hns0n"}}