{"action":"created","issue":{"url":"https://api.github.com/repos/edx/XBlock/issues/331","labels_url":"https://api.github.com/repos/edx/XBlock/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/edx/XBlock/issues/331/comments","events_url":"https://api.github.com/repos/edx/XBlock/issues/331/events","html_url":"https://github.com/edx/XBlock/pull/331","id":123644717,"number":331,"title":"Fixing exporting DateTime with value set to None","user":{"login":"e-kolpakov","id":3330048,"avatar_url":"https://avatars.githubusercontent.com/u/3330048?v=3","gravatar_id":"","url":"https://api.github.com/users/e-kolpakov","html_url":"https://github.com/e-kolpakov","followers_url":"https://api.github.com/users/e-kolpakov/followers","following_url":"https://api.github.com/users/e-kolpakov/following{/other_user}","gists_url":"https://api.github.com/users/e-kolpakov/gists{/gist_id}","starred_url":"https://api.github.com/users/e-kolpakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-kolpakov/subscriptions","organizations_url":"https://api.github.com/users/e-kolpakov/orgs","repos_url":"https://api.github.com/users/e-kolpakov/repos","events_url":"https://api.github.com/users/e-kolpakov/events{/privacy}","received_events_url":"https://api.github.com/users/e-kolpakov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/edx/XBlock/labels/awaiting%20prioritization","name":"awaiting prioritization","color":"fad8c7"},{"url":"https://api.github.com/repos/edx/XBlock/labels/open-source-contribution","name":"open-source-contribution","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-23T11:41:18Z","updated_at":"2016-01-07T16:53:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/XBlock/pulls/331","html_url":"https://github.com/edx/XBlock/pull/331","diff_url":"https://github.com/edx/XBlock/pull/331.diff","patch_url":"https://github.com/edx/XBlock/pull/331.patch"},"body":"**Description:** forward-port of corresponding [solutions PR](https://github.com/edx-solutions/XBlock/pull/7). It is possible to set DateTime field to None (and not default), but exporting the course would fail in that case. This PR fixes this.\r\n\r\n**JIRA:** [OSPR-1038](https://openedx.atlassian.net/browse/OSPR-1038)\r\n\r\n**Testing Instructions:**\r\n1. Create an XBlock with DateTime field (or use existing one).\r\n2. (Optional) Using StudioEditableXBlockMixin from xblock-utils makes it much easier by providing declarative interface to specifying what fields should be edited.\r\n3. In studio, add the block to a course.\r\n4. Set DateTime field to empty value (if using StudioEditableXBlockMixin - set any value with datetime dropdown, than clear it with backspace/delete. Do **not** reset to default.\r\n5. Try exporting the course. *Pre-fix behavior:* Exception is thrown. *Expected behavior:* Course is successfully exported."},"comment":{"url":"https://api.github.com/repos/edx/XBlock/issues/comments/169726273","html_url":"https://github.com/edx/XBlock/pull/331#issuecomment-169726273","issue_url":"https://api.github.com/repos/edx/XBlock/issues/331","id":169726273,"user":{"login":"doctoryes","id":7285237,"avatar_url":"https://avatars.githubusercontent.com/u/7285237?v=3","gravatar_id":"","url":"https://api.github.com/users/doctoryes","html_url":"https://github.com/doctoryes","followers_url":"https://api.github.com/users/doctoryes/followers","following_url":"https://api.github.com/users/doctoryes/following{/other_user}","gists_url":"https://api.github.com/users/doctoryes/gists{/gist_id}","starred_url":"https://api.github.com/users/doctoryes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctoryes/subscriptions","organizations_url":"https://api.github.com/users/doctoryes/orgs","repos_url":"https://api.github.com/users/doctoryes/repos","events_url":"https://api.github.com/users/doctoryes/events{/privacy}","received_events_url":"https://api.github.com/users/doctoryes/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T16:53:04Z","updated_at":"2016-01-07T16:53:04Z","body":"I'll review this - but might be early next week."}}