{"action":"created","comment":{"url":"https://api.github.com/repos/MyBook/django-atol/pulls/comments/153635318","pull_request_review_id":79491663,"id":153635318,"diff_hunk":"@@ -0,0 +1,67 @@\n+import logging\n+import datetime\n+import shortuuid\n+from dateutil.parser import parse as parse_date\n+\n+from django.conf import settings\n+from django.http import HttpResponseNotFound\n+from django.shortcuts import get_object_or_404\n+from django.utils.encoding import force_bytes\n+from django.views.generic import RedirectView\n+\n+from atol.models import Receipt\n+\n+logger = logging.getLogger(__name__)\n+\n+\n+class MissingReceipt(Exception):","path":"atol/views.py","position":17,"original_position":17,"commit_id":"94c34b9e5ab00d7a9b09f105a7b65d7fddaacdf9","original_commit_id":"94c34b9e5ab00d7a9b09f105a7b65d7fddaacdf9","user":{"login":"coagulant","id":404463,"avatar_url":"https://avatars1.githubusercontent.com/u/404463?v=4","gravatar_id":"","url":"https://api.github.com/users/coagulant","html_url":"https://github.com/coagulant","followers_url":"https://api.github.com/users/coagulant/followers","following_url":"https://api.github.com/users/coagulant/following{/other_user}","gists_url":"https://api.github.com/users/coagulant/gists{/gist_id}","starred_url":"https://api.github.com/users/coagulant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coagulant/subscriptions","organizations_url":"https://api.github.com/users/coagulant/orgs","repos_url":"https://api.github.com/users/coagulant/repos","events_url":"https://api.github.com/users/coagulant/events{/privacy}","received_events_url":"https://api.github.com/users/coagulant/received_events","type":"User","site_admin":false},"body":"В exceptions.py","created_at":"2017-11-28T21:56:26Z","updated_at":"2017-11-28T21:58:15Z","html_url":"https://github.com/MyBook/django-atol/pull/1#discussion_r153635318","pull_request_url":"https://api.github.com/repos/MyBook/django-atol/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/MyBook/django-atol/pulls/comments/153635318"},"html":{"href":"https://github.com/MyBook/django-atol/pull/1#discussion_r153635318"},"pull_request":{"href":"https://api.github.com/repos/MyBook/django-atol/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/MyBook/django-atol/pulls/1","id":155047432,"html_url":"https://github.com/MyBook/django-atol/pull/1","diff_url":"https://github.com/MyBook/django-atol/pull/1.diff","patch_url":"https://github.com/MyBook/django-atol/pull/1.patch","issue_url":"https://api.github.com/repos/MyBook/django-atol/issues/1","number":1,"state":"open","locked":false,"title":"Add base Atol API and tests","user":{"login":"cephey","id":2538672,"avatar_url":"https://avatars0.githubusercontent.com/u/2538672?v=4","gravatar_id":"","url":"https://api.github.com/users/cephey","html_url":"https://github.com/cephey","followers_url":"https://api.github.com/users/cephey/followers","following_url":"https://api.github.com/users/cephey/following{/other_user}","gists_url":"https://api.github.com/users/cephey/gists{/gist_id}","starred_url":"https://api.github.com/users/cephey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cephey/subscriptions","organizations_url":"https://api.github.com/users/cephey/orgs","repos_url":"https://api.github.com/users/cephey/repos","events_url":"https://api.github.com/users/cephey/events{/privacy}","received_events_url":"https://api.github.com/users/cephey/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-28T11:36:53Z","updated_at":"2017-11-28T21:58:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8834bf5bc2b91b2c4e87d34481a5fb69e839643b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/MyBook/django-atol/pulls/1/commits","review_comments_url":"https://api.github.com/repos/MyBook/django-atol/pulls/1/comments","review_comment_url":"https://api.github.com/repos/MyBook/django-atol/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MyBook/django-atol/issues/1/comments","statuses_url":"https://api.github.com/repos/MyBook/django-atol/statuses/94c34b9e5ab00d7a9b09f105a7b65d7fddaacdf9","head":{"label":"MyBook:feature/atol-api","ref":"feature/atol-api","sha":"94c34b9e5ab00d7a9b09f105a7b65d7fddaacdf9","user":{"login":"MyBook","id":1283637,"avatar_url":"https://avatars1.githubusercontent.com/u/1283637?v=4","gravatar_id":"","url":"https://api.github.com/users/MyBook","html_url":"https://github.com/MyBook","followers_url":"https://api.github.com/users/MyBook/followers","following_url":"https://api.github.com/users/MyBook/following{/other_user}","gists_url":"https://api.github.com/users/MyBook/gists{/gist_id}","starred_url":"https://api.github.com/users/MyBook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyBook/subscriptions","organizations_url":"https://api.github.com/users/MyBook/orgs","repos_url":"https://api.github.com/users/MyBook/repos","events_url":"https://api.github.com/users/MyBook/events{/privacy}","received_events_url":"https://api.github.com/users/MyBook/received_events","type":"Organization","site_admin":false},"repo":{"id":112324567,"name":"django-atol","full_name":"MyBook/django-atol","owner":{"login":"MyBook","id":1283637,"avatar_url":"https://avatars1.githubusercontent.com/u/1283637?v=4","gravatar_id":"","url":"https://api.github.com/users/MyBook","html_url":"https://github.com/MyBook","followers_url":"https://api.github.com/users/MyBook/followers","following_url":"https://api.github.com/users/MyBook/following{/other_user}","gists_url":"https://api.github.com/users/MyBook/gists{/gist_id}","starred_url":"https://api.github.com/users/MyBook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyBook/subscriptions","organizations_url":"https://api.github.com/users/MyBook/orgs","repos_url":"https://api.github.com/users/MyBook/repos","events_url":"https://api.github.com/users/MyBook/events{/privacy}","received_events_url":"https://api.github.com/users/MyBook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MyBook/django-atol","description":null,"fork":false,"url":"https://api.github.com/repos/MyBook/django-atol","forks_url":"https://api.github.com/repos/MyBook/django-atol/forks","keys_url":"https://api.github.com/repos/MyBook/django-atol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyBook/django-atol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyBook/django-atol/teams","hooks_url":"https://api.github.com/repos/MyBook/django-atol/hooks","issue_events_url":"https://api.github.com/repos/MyBook/django-atol/issues/events{/number}","events_url":"https://api.github.com/repos/MyBook/django-atol/events","assignees_url":"https://api.github.com/repos/MyBook/django-atol/assignees{/user}","branches_url":"https://api.github.com/repos/MyBook/django-atol/branches{/branch}","tags_url":"https://api.github.com/repos/MyBook/django-atol/tags","blobs_url":"https://api.github.com/repos/MyBook/django-atol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyBook/django-atol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyBook/django-atol/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyBook/django-atol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyBook/django-atol/statuses/{sha}","languages_url":"https://api.github.com/repos/MyBook/django-atol/languages","stargazers_url":"https://api.github.com/repos/MyBook/django-atol/stargazers","contributors_url":"https://api.github.com/repos/MyBook/django-atol/contributors","subscribers_url":"https://api.github.com/repos/MyBook/django-atol/subscribers","subscription_url":"https://api.github.com/repos/MyBook/django-atol/subscription","commits_url":"https://api.github.com/repos/MyBook/django-atol/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyBook/django-atol/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyBook/django-atol/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyBook/django-atol/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyBook/django-atol/contents/{+path}","compare_url":"https://api.github.com/repos/MyBook/django-atol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyBook/django-atol/merges","archive_url":"https://api.github.com/repos/MyBook/django-atol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyBook/django-atol/downloads","issues_url":"https://api.github.com/repos/MyBook/django-atol/issues{/number}","pulls_url":"https://api.github.com/repos/MyBook/django-atol/pulls{/number}","milestones_url":"https://api.github.com/repos/MyBook/django-atol/milestones{/number}","notifications_url":"https://api.github.com/repos/MyBook/django-atol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyBook/django-atol/labels{/name}","releases_url":"https://api.github.com/repos/MyBook/django-atol/releases{/id}","deployments_url":"https://api.github.com/repos/MyBook/django-atol/deployments","created_at":"2017-11-28T11:05:18Z","updated_at":"2017-11-28T11:05:18Z","pushed_at":"2017-11-28T11:36:53Z","git_url":"git://github.com/MyBook/django-atol.git","ssh_url":"git@github.com:MyBook/django-atol.git","clone_url":"https://github.com/MyBook/django-atol.git","svn_url":"https://github.com/MyBook/django-atol","homepage":null,"size":17,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MyBook:master","ref":"master","sha":"28a75d35853762a5fa4c4f8e0a1495f38bfb41ce","user":{"login":"MyBook","id":1283637,"avatar_url":"https://avatars1.githubusercontent.com/u/1283637?v=4","gravatar_id":"","url":"https://api.github.com/users/MyBook","html_url":"https://github.com/MyBook","followers_url":"https://api.github.com/users/MyBook/followers","following_url":"https://api.github.com/users/MyBook/following{/other_user}","gists_url":"https://api.github.com/users/MyBook/gists{/gist_id}","starred_url":"https://api.github.com/users/MyBook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyBook/subscriptions","organizations_url":"https://api.github.com/users/MyBook/orgs","repos_url":"https://api.github.com/users/MyBook/repos","events_url":"https://api.github.com/users/MyBook/events{/privacy}","received_events_url":"https://api.github.com/users/MyBook/received_events","type":"Organization","site_admin":false},"repo":{"id":112324567,"name":"django-atol","full_name":"MyBook/django-atol","owner":{"login":"MyBook","id":1283637,"avatar_url":"https://avatars1.githubusercontent.com/u/1283637?v=4","gravatar_id":"","url":"https://api.github.com/users/MyBook","html_url":"https://github.com/MyBook","followers_url":"https://api.github.com/users/MyBook/followers","following_url":"https://api.github.com/users/MyBook/following{/other_user}","gists_url":"https://api.github.com/users/MyBook/gists{/gist_id}","starred_url":"https://api.github.com/users/MyBook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyBook/subscriptions","organizations_url":"https://api.github.com/users/MyBook/orgs","repos_url":"https://api.github.com/users/MyBook/repos","events_url":"https://api.github.com/users/MyBook/events{/privacy}","received_events_url":"https://api.github.com/users/MyBook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MyBook/django-atol","description":null,"fork":false,"url":"https://api.github.com/repos/MyBook/django-atol","forks_url":"https://api.github.com/repos/MyBook/django-atol/forks","keys_url":"https://api.github.com/repos/MyBook/django-atol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyBook/django-atol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyBook/django-atol/teams","hooks_url":"https://api.github.com/repos/MyBook/django-atol/hooks","issue_events_url":"https://api.github.com/repos/MyBook/django-atol/issues/events{/number}","events_url":"https://api.github.com/repos/MyBook/django-atol/events","assignees_url":"https://api.github.com/repos/MyBook/django-atol/assignees{/user}","branches_url":"https://api.github.com/repos/MyBook/django-atol/branches{/branch}","tags_url":"https://api.github.com/repos/MyBook/django-atol/tags","blobs_url":"https://api.github.com/repos/MyBook/django-atol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyBook/django-atol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyBook/django-atol/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyBook/django-atol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyBook/django-atol/statuses/{sha}","languages_url":"https://api.github.com/repos/MyBook/django-atol/languages","stargazers_url":"https://api.github.com/repos/MyBook/django-atol/stargazers","contributors_url":"https://api.github.com/repos/MyBook/django-atol/contributors","subscribers_url":"https://api.github.com/repos/MyBook/django-atol/subscribers","subscription_url":"https://api.github.com/repos/MyBook/django-atol/subscription","commits_url":"https://api.github.com/repos/MyBook/django-atol/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyBook/django-atol/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyBook/django-atol/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyBook/django-atol/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyBook/django-atol/contents/{+path}","compare_url":"https://api.github.com/repos/MyBook/django-atol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyBook/django-atol/merges","archive_url":"https://api.github.com/repos/MyBook/django-atol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyBook/django-atol/downloads","issues_url":"https://api.github.com/repos/MyBook/django-atol/issues{/number}","pulls_url":"https://api.github.com/repos/MyBook/django-atol/pulls{/number}","milestones_url":"https://api.github.com/repos/MyBook/django-atol/milestones{/number}","notifications_url":"https://api.github.com/repos/MyBook/django-atol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyBook/django-atol/labels{/name}","releases_url":"https://api.github.com/repos/MyBook/django-atol/releases{/id}","deployments_url":"https://api.github.com/repos/MyBook/django-atol/deployments","created_at":"2017-11-28T11:05:18Z","updated_at":"2017-11-28T11:05:18Z","pushed_at":"2017-11-28T11:36:53Z","git_url":"git://github.com/MyBook/django-atol.git","ssh_url":"git@github.com:MyBook/django-atol.git","clone_url":"https://github.com/MyBook/django-atol.git","svn_url":"https://github.com/MyBook/django-atol","homepage":null,"size":17,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MyBook/django-atol/pulls/1"},"html":{"href":"https://github.com/MyBook/django-atol/pull/1"},"issue":{"href":"https://api.github.com/repos/MyBook/django-atol/issues/1"},"comments":{"href":"https://api.github.com/repos/MyBook/django-atol/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/MyBook/django-atol/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/MyBook/django-atol/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MyBook/django-atol/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/MyBook/django-atol/statuses/94c34b9e5ab00d7a9b09f105a7b65d7fddaacdf9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"coagulant"}}