{"action":"created","comment":{"url":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/comments/61861344","id":61861344,"diff_hunk":"@@ -0,0 +1,20 @@\n+\"\"\"\n+Mailer module.\n+Contains functions to send eCommerce emails.\n+\"\"\"\n+\n+from django.core.mail import send_mail\n+from django.conf import settings\n+from django.template.loader import render_to_string\n+\n+\n+def send_oder(order):\n+    \"\"\"\n+    Sends order email to client.\n+    :param order:\n+    :return:\n+    \"\"\"\n+    email_template = render_to_string(\n+        'ecommerce/sucess_order.html', {'order': order})\n+    send_mail('Order {}'.format(order.id), email_template, settings.SHOP_EMAIL, [order.email],","path":"ecommerce/mailer.py","position":19,"original_position":19,"commit_id":"301b5c92a8dc01d5f42a8bdbbcb1ba0984ffc342","original_commit_id":"301b5c92a8dc01d5f42a8bdbbcb1ba0984ffc342","user":{"login":"begor","id":10001148,"avatar_url":"https://avatars.githubusercontent.com/u/10001148?v=3","gravatar_id":"","url":"https://api.github.com/users/begor","html_url":"https://github.com/begor","followers_url":"https://api.github.com/users/begor/followers","following_url":"https://api.github.com/users/begor/following{/other_user}","gists_url":"https://api.github.com/users/begor/gists{/gist_id}","starred_url":"https://api.github.com/users/begor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begor/subscriptions","organizations_url":"https://api.github.com/users/begor/orgs","repos_url":"https://api.github.com/users/begor/repos","events_url":"https://api.github.com/users/begor/events{/privacy}","received_events_url":"https://api.github.com/users/begor/received_events","type":"User","site_admin":false},"body":"Гм, как ты задашь паттерн заголовка письма в настройках, не зная реализации сущности order? ","created_at":"2016-05-03T10:14:20Z","updated_at":"2016-05-03T10:14:20Z","html_url":"https://github.com/fidals/refarm-ecommerce/pull/1#discussion_r61861344","pull_request_url":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/comments/61861344"},"html":{"href":"https://github.com/fidals/refarm-ecommerce/pull/1#discussion_r61861344"},"pull_request":{"href":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/1","id":68543080,"html_url":"https://github.com/fidals/refarm-ecommerce/pull/1","diff_url":"https://github.com/fidals/refarm-ecommerce/pull/1.diff","patch_url":"https://github.com/fidals/refarm-ecommerce/pull/1.patch","issue_url":"https://api.github.com/repos/fidals/refarm-ecommerce/issues/1","number":1,"state":"closed","locked":false,"title":"Reusable eCommerce Django application.","user":{"login":"begor","id":10001148,"avatar_url":"https://avatars.githubusercontent.com/u/10001148?v=3","gravatar_id":"","url":"https://api.github.com/users/begor","html_url":"https://github.com/begor","followers_url":"https://api.github.com/users/begor/followers","following_url":"https://api.github.com/users/begor/following{/other_user}","gists_url":"https://api.github.com/users/begor/gists{/gist_id}","starred_url":"https://api.github.com/users/begor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begor/subscriptions","organizations_url":"https://api.github.com/users/begor/orgs","repos_url":"https://api.github.com/users/begor/repos","events_url":"https://api.github.com/users/begor/events{/privacy}","received_events_url":"https://api.github.com/users/begor/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-02T10:10:51Z","updated_at":"2016-05-03T10:14:20Z","closed_at":"2016-05-03T09:04:38Z","merged_at":null,"merge_commit_sha":"8e4200b7efd654bf4ade0f8299dd2f1cc5eb509e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/1/commits","review_comments_url":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/1/comments","review_comment_url":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fidals/refarm-ecommerce/issues/1/comments","statuses_url":"https://api.github.com/repos/fidals/refarm-ecommerce/statuses/301b5c92a8dc01d5f42a8bdbbcb1ba0984ffc342","head":{"label":"fidals:ecommerce_app","ref":"ecommerce_app","sha":"301b5c92a8dc01d5f42a8bdbbcb1ba0984ffc342","user":{"login":"fidals","id":16228604,"avatar_url":"https://avatars.githubusercontent.com/u/16228604?v=3","gravatar_id":"","url":"https://api.github.com/users/fidals","html_url":"https://github.com/fidals","followers_url":"https://api.github.com/users/fidals/followers","following_url":"https://api.github.com/users/fidals/following{/other_user}","gists_url":"https://api.github.com/users/fidals/gists{/gist_id}","starred_url":"https://api.github.com/users/fidals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidals/subscriptions","organizations_url":"https://api.github.com/users/fidals/orgs","repos_url":"https://api.github.com/users/fidals/repos","events_url":"https://api.github.com/users/fidals/events{/privacy}","received_events_url":"https://api.github.com/users/fidals/received_events","type":"Organization","site_admin":false},"repo":{"id":56853816,"name":"refarm-ecommerce","full_name":"fidals/refarm-ecommerce","owner":{"login":"fidals","id":16228604,"avatar_url":"https://avatars.githubusercontent.com/u/16228604?v=3","gravatar_id":"","url":"https://api.github.com/users/fidals","html_url":"https://github.com/fidals","followers_url":"https://api.github.com/users/fidals/followers","following_url":"https://api.github.com/users/fidals/following{/other_user}","gists_url":"https://api.github.com/users/fidals/gists{/gist_id}","starred_url":"https://api.github.com/users/fidals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidals/subscriptions","organizations_url":"https://api.github.com/users/fidals/orgs","repos_url":"https://api.github.com/users/fidals/repos","events_url":"https://api.github.com/users/fidals/events{/privacy}","received_events_url":"https://api.github.com/users/fidals/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fidals/refarm-ecommerce","description":"Django application with typical eCommerce functions: user's Cart, Order, sending mails","fork":false,"url":"https://api.github.com/repos/fidals/refarm-ecommerce","forks_url":"https://api.github.com/repos/fidals/refarm-ecommerce/forks","keys_url":"https://api.github.com/repos/fidals/refarm-ecommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fidals/refarm-ecommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fidals/refarm-ecommerce/teams","hooks_url":"https://api.github.com/repos/fidals/refarm-ecommerce/hooks","issue_events_url":"https://api.github.com/repos/fidals/refarm-ecommerce/issues/events{/number}","events_url":"https://api.github.com/repos/fidals/refarm-ecommerce/events","assignees_url":"https://api.github.com/repos/fidals/refarm-ecommerce/assignees{/user}","branches_url":"https://api.github.com/repos/fidals/refarm-ecommerce/branches{/branch}","tags_url":"https://api.github.com/repos/fidals/refarm-ecommerce/tags","blobs_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fidals/refarm-ecommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/fidals/refarm-ecommerce/languages","stargazers_url":"https://api.github.com/repos/fidals/refarm-ecommerce/stargazers","contributors_url":"https://api.github.com/repos/fidals/refarm-ecommerce/contributors","subscribers_url":"https://api.github.com/repos/fidals/refarm-ecommerce/subscribers","subscription_url":"https://api.github.com/repos/fidals/refarm-ecommerce/subscription","commits_url":"https://api.github.com/repos/fidals/refarm-ecommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/fidals/refarm-ecommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/fidals/refarm-ecommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/fidals/refarm-ecommerce/contents/{+path}","compare_url":"https://api.github.com/repos/fidals/refarm-ecommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fidals/refarm-ecommerce/merges","archive_url":"https://api.github.com/repos/fidals/refarm-ecommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fidals/refarm-ecommerce/downloads","issues_url":"https://api.github.com/repos/fidals/refarm-ecommerce/issues{/number}","pulls_url":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/fidals/refarm-ecommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/fidals/refarm-ecommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fidals/refarm-ecommerce/labels{/name}","releases_url":"https://api.github.com/repos/fidals/refarm-ecommerce/releases{/id}","deployments_url":"https://api.github.com/repos/fidals/refarm-ecommerce/deployments","created_at":"2016-04-22T12:29:01Z","updated_at":"2016-05-03T09:07:15Z","pushed_at":"2016-05-03T09:07:19Z","git_url":"git://github.com/fidals/refarm-ecommerce.git","ssh_url":"git@github.com:fidals/refarm-ecommerce.git","clone_url":"https://github.com/fidals/refarm-ecommerce.git","svn_url":"https://github.com/fidals/refarm-ecommerce","homepage":"","size":13,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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":"fidals:master","ref":"master","sha":"1b3915de8e5b25491169a4b7a05fa97e7c8b6951","user":{"login":"fidals","id":16228604,"avatar_url":"https://avatars.githubusercontent.com/u/16228604?v=3","gravatar_id":"","url":"https://api.github.com/users/fidals","html_url":"https://github.com/fidals","followers_url":"https://api.github.com/users/fidals/followers","following_url":"https://api.github.com/users/fidals/following{/other_user}","gists_url":"https://api.github.com/users/fidals/gists{/gist_id}","starred_url":"https://api.github.com/users/fidals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidals/subscriptions","organizations_url":"https://api.github.com/users/fidals/orgs","repos_url":"https://api.github.com/users/fidals/repos","events_url":"https://api.github.com/users/fidals/events{/privacy}","received_events_url":"https://api.github.com/users/fidals/received_events","type":"Organization","site_admin":false},"repo":{"id":56853816,"name":"refarm-ecommerce","full_name":"fidals/refarm-ecommerce","owner":{"login":"fidals","id":16228604,"avatar_url":"https://avatars.githubusercontent.com/u/16228604?v=3","gravatar_id":"","url":"https://api.github.com/users/fidals","html_url":"https://github.com/fidals","followers_url":"https://api.github.com/users/fidals/followers","following_url":"https://api.github.com/users/fidals/following{/other_user}","gists_url":"https://api.github.com/users/fidals/gists{/gist_id}","starred_url":"https://api.github.com/users/fidals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidals/subscriptions","organizations_url":"https://api.github.com/users/fidals/orgs","repos_url":"https://api.github.com/users/fidals/repos","events_url":"https://api.github.com/users/fidals/events{/privacy}","received_events_url":"https://api.github.com/users/fidals/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fidals/refarm-ecommerce","description":"Django application with typical eCommerce functions: user's Cart, Order, sending mails","fork":false,"url":"https://api.github.com/repos/fidals/refarm-ecommerce","forks_url":"https://api.github.com/repos/fidals/refarm-ecommerce/forks","keys_url":"https://api.github.com/repos/fidals/refarm-ecommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fidals/refarm-ecommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fidals/refarm-ecommerce/teams","hooks_url":"https://api.github.com/repos/fidals/refarm-ecommerce/hooks","issue_events_url":"https://api.github.com/repos/fidals/refarm-ecommerce/issues/events{/number}","events_url":"https://api.github.com/repos/fidals/refarm-ecommerce/events","assignees_url":"https://api.github.com/repos/fidals/refarm-ecommerce/assignees{/user}","branches_url":"https://api.github.com/repos/fidals/refarm-ecommerce/branches{/branch}","tags_url":"https://api.github.com/repos/fidals/refarm-ecommerce/tags","blobs_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fidals/refarm-ecommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/fidals/refarm-ecommerce/languages","stargazers_url":"https://api.github.com/repos/fidals/refarm-ecommerce/stargazers","contributors_url":"https://api.github.com/repos/fidals/refarm-ecommerce/contributors","subscribers_url":"https://api.github.com/repos/fidals/refarm-ecommerce/subscribers","subscription_url":"https://api.github.com/repos/fidals/refarm-ecommerce/subscription","commits_url":"https://api.github.com/repos/fidals/refarm-ecommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/fidals/refarm-ecommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/fidals/refarm-ecommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/fidals/refarm-ecommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/fidals/refarm-ecommerce/contents/{+path}","compare_url":"https://api.github.com/repos/fidals/refarm-ecommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fidals/refarm-ecommerce/merges","archive_url":"https://api.github.com/repos/fidals/refarm-ecommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fidals/refarm-ecommerce/downloads","issues_url":"https://api.github.com/repos/fidals/refarm-ecommerce/issues{/number}","pulls_url":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/fidals/refarm-ecommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/fidals/refarm-ecommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fidals/refarm-ecommerce/labels{/name}","releases_url":"https://api.github.com/repos/fidals/refarm-ecommerce/releases{/id}","deployments_url":"https://api.github.com/repos/fidals/refarm-ecommerce/deployments","created_at":"2016-04-22T12:29:01Z","updated_at":"2016-05-03T09:07:15Z","pushed_at":"2016-05-03T09:07:19Z","git_url":"git://github.com/fidals/refarm-ecommerce.git","ssh_url":"git@github.com:fidals/refarm-ecommerce.git","clone_url":"https://github.com/fidals/refarm-ecommerce.git","svn_url":"https://github.com/fidals/refarm-ecommerce","homepage":"","size":13,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/1"},"html":{"href":"https://github.com/fidals/refarm-ecommerce/pull/1"},"issue":{"href":"https://api.github.com/repos/fidals/refarm-ecommerce/issues/1"},"comments":{"href":"https://api.github.com/repos/fidals/refarm-ecommerce/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fidals/refarm-ecommerce/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/fidals/refarm-ecommerce/statuses/301b5c92a8dc01d5f42a8bdbbcb1ba0984ffc342"}}}}