{"action":"created","comment":{"url":"https://api.github.com/repos/learningequality/kolibri/pulls/comments/73606122","id":73606122,"diff_hunk":"@@ -47,11 +47,11 @@ def get_db_prep_value(self, value, connection, prepared=False):\n                 value = uuid.UUID(value)\n             except AttributeError:\n                 raise TypeError(self.error_messages['invalid'] % {'value': value})\n-\n-        if connection.features.has_native_uuid_field:\n-            return value\n         return value.hex\n \n+    def from_db_value(self, value, expression, connection, context):\n+        return self.to_python(value)","path":"kolibri/content/models.py","position":10,"original_position":10,"commit_id":"86781b21b6a532a746cec4d4114e626301b70eb0","original_commit_id":"8642824901bdbe874b232e15658a8c29cb166e3b","user":{"login":"aronasorman","id":191955,"avatar_url":"https://avatars.githubusercontent.com/u/191955?v=3","gravatar_id":"","url":"https://api.github.com/users/aronasorman","html_url":"https://github.com/aronasorman","followers_url":"https://api.github.com/users/aronasorman/followers","following_url":"https://api.github.com/users/aronasorman/following{/other_user}","gists_url":"https://api.github.com/users/aronasorman/gists{/gist_id}","starred_url":"https://api.github.com/users/aronasorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronasorman/subscriptions","organizations_url":"https://api.github.com/users/aronasorman/orgs","repos_url":"https://api.github.com/users/aronasorman/repos","events_url":"https://api.github.com/users/aronasorman/events{/privacy}","received_events_url":"https://api.github.com/users/aronasorman/received_events","type":"User","site_admin":false},"body":"How does this return the hex value? And what are the other parameters for?","created_at":"2016-08-04T21:28:15Z","updated_at":"2016-08-04T21:28:15Z","html_url":"https://github.com/learningequality/kolibri/pull/328#discussion_r73606122","pull_request_url":"https://api.github.com/repos/learningequality/kolibri/pulls/328","_links":{"self":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/comments/73606122"},"html":{"href":"https://github.com/learningequality/kolibri/pull/328#discussion_r73606122"},"pull_request":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/328"}}},"pull_request":{"url":"https://api.github.com/repos/learningequality/kolibri/pulls/328","id":79825516,"html_url":"https://github.com/learningequality/kolibri/pull/328","diff_url":"https://github.com/learningequality/kolibri/pull/328.diff","patch_url":"https://github.com/learningequality/kolibri/pull/328.patch","issue_url":"https://api.github.com/repos/learningequality/kolibri/issues/328","number":328,"state":"open","locked":false,"title":"CSV export for ContentSummaryLog, along with some reusable machinery and fixes","user":{"login":"jamalex","id":618416,"avatar_url":"https://avatars.githubusercontent.com/u/618416?v=3","gravatar_id":"","url":"https://api.github.com/users/jamalex","html_url":"https://github.com/jamalex","followers_url":"https://api.github.com/users/jamalex/followers","following_url":"https://api.github.com/users/jamalex/following{/other_user}","gists_url":"https://api.github.com/users/jamalex/gists{/gist_id}","starred_url":"https://api.github.com/users/jamalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamalex/subscriptions","organizations_url":"https://api.github.com/users/jamalex/orgs","repos_url":"https://api.github.com/users/jamalex/repos","events_url":"https://api.github.com/users/jamalex/events{/privacy}","received_events_url":"https://api.github.com/users/jamalex/received_events","type":"User","site_admin":false},"body":"## Summary\r\n\r\nAPI endpoint that serves a CSV file download with ContentSummaryLog data.\r\n\r\nAlso added a reusable convenience class called CSVModelViewSet that can be inherited to easily add new CSV export endpoints.\r\n\r\nAlso, some fly-by fixes/improvements:\r\n\r\n- Update `UUIDField` to always return 32-char hex representation.\r\n- Run sync_channelmetadata when server starts, to keep `ChannelMetadataCache` model in sync\r\n- Switched dummy channel DB ID over to a UUID (da32c86316b623399732d886af6c7c49); requires deleting dummy_db.sqlite and [putting in a new DB file](https://slack-files.com/T0KT5DC58-F1XJ14DU4-d2d47e9832) instead.\r\n- Run auto-migrations without requiring keyboard input (to avoid errors when starting server and content types need to be cleared from the DB\r\n\r\n## TODO\r\n\r\n- [x] Have tests been written for the new code?\r\n- [ ] Has documentation been written/updated?\r\n- [x] New dependencies (if any) added to requirements file\r\n","created_at":"2016-08-02T23:20:56Z","updated_at":"2016-08-04T21:28:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f108ce345f8de09d5e769eb2e9d5dd66546d4e7","assignee":{"login":"aronasorman","id":191955,"avatar_url":"https://avatars.githubusercontent.com/u/191955?v=3","gravatar_id":"","url":"https://api.github.com/users/aronasorman","html_url":"https://github.com/aronasorman","followers_url":"https://api.github.com/users/aronasorman/followers","following_url":"https://api.github.com/users/aronasorman/following{/other_user}","gists_url":"https://api.github.com/users/aronasorman/gists{/gist_id}","starred_url":"https://api.github.com/users/aronasorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronasorman/subscriptions","organizations_url":"https://api.github.com/users/aronasorman/orgs","repos_url":"https://api.github.com/users/aronasorman/repos","events_url":"https://api.github.com/users/aronasorman/events{/privacy}","received_events_url":"https://api.github.com/users/aronasorman/received_events","type":"User","site_admin":false},"assignees":[{"login":"aronasorman","id":191955,"avatar_url":"https://avatars.githubusercontent.com/u/191955?v=3","gravatar_id":"","url":"https://api.github.com/users/aronasorman","html_url":"https://github.com/aronasorman","followers_url":"https://api.github.com/users/aronasorman/followers","following_url":"https://api.github.com/users/aronasorman/following{/other_user}","gists_url":"https://api.github.com/users/aronasorman/gists{/gist_id}","starred_url":"https://api.github.com/users/aronasorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronasorman/subscriptions","organizations_url":"https://api.github.com/users/aronasorman/orgs","repos_url":"https://api.github.com/users/aronasorman/repos","events_url":"https://api.github.com/users/aronasorman/events{/privacy}","received_events_url":"https://api.github.com/users/aronasorman/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/learningequality/kolibri/pulls/328/commits","review_comments_url":"https://api.github.com/repos/learningequality/kolibri/pulls/328/comments","review_comment_url":"https://api.github.com/repos/learningequality/kolibri/pulls/comments{/number}","comments_url":"https://api.github.com/repos/learningequality/kolibri/issues/328/comments","statuses_url":"https://api.github.com/repos/learningequality/kolibri/statuses/86781b21b6a532a746cec4d4114e626301b70eb0","head":{"label":"jamalex:csv_export","ref":"csv_export","sha":"86781b21b6a532a746cec4d4114e626301b70eb0","user":{"login":"jamalex","id":618416,"avatar_url":"https://avatars.githubusercontent.com/u/618416?v=3","gravatar_id":"","url":"https://api.github.com/users/jamalex","html_url":"https://github.com/jamalex","followers_url":"https://api.github.com/users/jamalex/followers","following_url":"https://api.github.com/users/jamalex/following{/other_user}","gists_url":"https://api.github.com/users/jamalex/gists{/gist_id}","starred_url":"https://api.github.com/users/jamalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamalex/subscriptions","organizations_url":"https://api.github.com/users/jamalex/orgs","repos_url":"https://api.github.com/users/jamalex/repos","events_url":"https://api.github.com/users/jamalex/events{/privacy}","received_events_url":"https://api.github.com/users/jamalex/received_events","type":"User","site_admin":false},"repo":{"id":51463055,"name":"kolibri","full_name":"jamalex/kolibri","owner":{"login":"jamalex","id":618416,"avatar_url":"https://avatars.githubusercontent.com/u/618416?v=3","gravatar_id":"","url":"https://api.github.com/users/jamalex","html_url":"https://github.com/jamalex","followers_url":"https://api.github.com/users/jamalex/followers","following_url":"https://api.github.com/users/jamalex/following{/other_user}","gists_url":"https://api.github.com/users/jamalex/gists{/gist_id}","starred_url":"https://api.github.com/users/jamalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamalex/subscriptions","organizations_url":"https://api.github.com/users/jamalex/orgs","repos_url":"https://api.github.com/users/jamalex/repos","events_url":"https://api.github.com/users/jamalex/events{/privacy}","received_events_url":"https://api.github.com/users/jamalex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamalex/kolibri","description":"This is where Kolibri shall be born, watch and participate!","fork":true,"url":"https://api.github.com/repos/jamalex/kolibri","forks_url":"https://api.github.com/repos/jamalex/kolibri/forks","keys_url":"https://api.github.com/repos/jamalex/kolibri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamalex/kolibri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamalex/kolibri/teams","hooks_url":"https://api.github.com/repos/jamalex/kolibri/hooks","issue_events_url":"https://api.github.com/repos/jamalex/kolibri/issues/events{/number}","events_url":"https://api.github.com/repos/jamalex/kolibri/events","assignees_url":"https://api.github.com/repos/jamalex/kolibri/assignees{/user}","branches_url":"https://api.github.com/repos/jamalex/kolibri/branches{/branch}","tags_url":"https://api.github.com/repos/jamalex/kolibri/tags","blobs_url":"https://api.github.com/repos/jamalex/kolibri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamalex/kolibri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamalex/kolibri/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamalex/kolibri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamalex/kolibri/statuses/{sha}","languages_url":"https://api.github.com/repos/jamalex/kolibri/languages","stargazers_url":"https://api.github.com/repos/jamalex/kolibri/stargazers","contributors_url":"https://api.github.com/repos/jamalex/kolibri/contributors","subscribers_url":"https://api.github.com/repos/jamalex/kolibri/subscribers","subscription_url":"https://api.github.com/repos/jamalex/kolibri/subscription","commits_url":"https://api.github.com/repos/jamalex/kolibri/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamalex/kolibri/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamalex/kolibri/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamalex/kolibri/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamalex/kolibri/contents/{+path}","compare_url":"https://api.github.com/repos/jamalex/kolibri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamalex/kolibri/merges","archive_url":"https://api.github.com/repos/jamalex/kolibri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamalex/kolibri/downloads","issues_url":"https://api.github.com/repos/jamalex/kolibri/issues{/number}","pulls_url":"https://api.github.com/repos/jamalex/kolibri/pulls{/number}","milestones_url":"https://api.github.com/repos/jamalex/kolibri/milestones{/number}","notifications_url":"https://api.github.com/repos/jamalex/kolibri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamalex/kolibri/labels{/name}","releases_url":"https://api.github.com/repos/jamalex/kolibri/releases{/id}","deployments_url":"https://api.github.com/repos/jamalex/kolibri/deployments","created_at":"2016-02-10T18:44:39Z","updated_at":"2016-02-10T18:44:40Z","pushed_at":"2016-08-04T18:01:08Z","git_url":"git://github.com/jamalex/kolibri.git","ssh_url":"git@github.com:jamalex/kolibri.git","clone_url":"https://github.com/jamalex/kolibri.git","svn_url":"https://github.com/jamalex/kolibri","homepage":"http://learningequality.org/kolibri/","size":6456,"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":"master"}},"base":{"label":"learningequality:master","ref":"master","sha":"5aadac00ad527a805681931fec751eed8ab53565","user":{"login":"learningequality","id":3926525,"avatar_url":"https://avatars.githubusercontent.com/u/3926525?v=3","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"repo":{"id":49976939,"name":"kolibri","full_name":"learningequality/kolibri","owner":{"login":"learningequality","id":3926525,"avatar_url":"https://avatars.githubusercontent.com/u/3926525?v=3","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learningequality/kolibri","description":"This is where Kolibri shall be born, watch and participate!","fork":false,"url":"https://api.github.com/repos/learningequality/kolibri","forks_url":"https://api.github.com/repos/learningequality/kolibri/forks","keys_url":"https://api.github.com/repos/learningequality/kolibri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learningequality/kolibri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learningequality/kolibri/teams","hooks_url":"https://api.github.com/repos/learningequality/kolibri/hooks","issue_events_url":"https://api.github.com/repos/learningequality/kolibri/issues/events{/number}","events_url":"https://api.github.com/repos/learningequality/kolibri/events","assignees_url":"https://api.github.com/repos/learningequality/kolibri/assignees{/user}","branches_url":"https://api.github.com/repos/learningequality/kolibri/branches{/branch}","tags_url":"https://api.github.com/repos/learningequality/kolibri/tags","blobs_url":"https://api.github.com/repos/learningequality/kolibri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learningequality/kolibri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learningequality/kolibri/git/refs{/sha}","trees_url":"https://api.github.com/repos/learningequality/kolibri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learningequality/kolibri/statuses/{sha}","languages_url":"https://api.github.com/repos/learningequality/kolibri/languages","stargazers_url":"https://api.github.com/repos/learningequality/kolibri/stargazers","contributors_url":"https://api.github.com/repos/learningequality/kolibri/contributors","subscribers_url":"https://api.github.com/repos/learningequality/kolibri/subscribers","subscription_url":"https://api.github.com/repos/learningequality/kolibri/subscription","commits_url":"https://api.github.com/repos/learningequality/kolibri/commits{/sha}","git_commits_url":"https://api.github.com/repos/learningequality/kolibri/git/commits{/sha}","comments_url":"https://api.github.com/repos/learningequality/kolibri/comments{/number}","issue_comment_url":"https://api.github.com/repos/learningequality/kolibri/issues/comments{/number}","contents_url":"https://api.github.com/repos/learningequality/kolibri/contents/{+path}","compare_url":"https://api.github.com/repos/learningequality/kolibri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learningequality/kolibri/merges","archive_url":"https://api.github.com/repos/learningequality/kolibri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learningequality/kolibri/downloads","issues_url":"https://api.github.com/repos/learningequality/kolibri/issues{/number}","pulls_url":"https://api.github.com/repos/learningequality/kolibri/pulls{/number}","milestones_url":"https://api.github.com/repos/learningequality/kolibri/milestones{/number}","notifications_url":"https://api.github.com/repos/learningequality/kolibri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learningequality/kolibri/labels{/name}","releases_url":"https://api.github.com/repos/learningequality/kolibri/releases{/id}","deployments_url":"https://api.github.com/repos/learningequality/kolibri/deployments","created_at":"2016-01-19T19:22:07Z","updated_at":"2016-07-15T21:33:22Z","pushed_at":"2016-08-04T20:51:11Z","git_url":"git://github.com/learningequality/kolibri.git","ssh_url":"git@github.com:learningequality/kolibri.git","clone_url":"https://github.com/learningequality/kolibri.git","svn_url":"https://github.com/learningequality/kolibri","homepage":"http://learningequality.org/kolibri/","size":7331,"stargazers_count":25,"watchers_count":25,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":30,"forks":29,"open_issues":30,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/328"},"html":{"href":"https://github.com/learningequality/kolibri/pull/328"},"issue":{"href":"https://api.github.com/repos/learningequality/kolibri/issues/328"},"comments":{"href":"https://api.github.com/repos/learningequality/kolibri/issues/328/comments"},"review_comments":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/328/comments"},"review_comment":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/328/commits"},"statuses":{"href":"https://api.github.com/repos/learningequality/kolibri/statuses/86781b21b6a532a746cec4d4114e626301b70eb0"}}}}
{"actor":{"display_login":"aronasorman"}}