{"action":"created","comment":{"url":"https://api.github.com/repos/nazarred/shop/pulls/comments/172060489","pull_request_review_id":101016026,"id":172060489,"diff_hunk":"@@ -0,0 +1,88 @@\n+from django.contrib import messages, auth\n+from django.http import JsonResponse\n+from django.shortcuts import redirect, get_object_or_404\n+from django.views.generic import ListView, DetailView\n+\n+from .forms import CommentModelForm\n+from .models import Product, ProductRating\n+\n+NMB_OF_PRODUCT = 6","path":"shop/product/views.py","position":9,"original_position":9,"commit_id":"a512df2f3f825e3e433825bed9429409bf5f98b6","original_commit_id":"a512df2f3f825e3e433825bed9429409bf5f98b6","user":{"login":"kotzila","id":5627768,"avatar_url":"https://avatars3.githubusercontent.com/u/5627768?v=4","gravatar_id":"","url":"https://api.github.com/users/kotzila","html_url":"https://github.com/kotzila","followers_url":"https://api.github.com/users/kotzila/followers","following_url":"https://api.github.com/users/kotzila/following{/other_user}","gists_url":"https://api.github.com/users/kotzila/gists{/gist_id}","starred_url":"https://api.github.com/users/kotzila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotzila/subscriptions","organizations_url":"https://api.github.com/users/kotzila/orgs","repos_url":"https://api.github.com/users/kotzila/repos","events_url":"https://api.github.com/users/kotzila/events{/privacy}","received_events_url":"https://api.github.com/users/kotzila/received_events","type":"User","site_admin":false},"body":"Я тут трошки не таке хотів. ПОдивися що таке pagination і як воно реалізоване в джанго. Тільки спочатку розберись як воно робиться в function based views, а  потім добавляй в СBV. Бо якщо зразу в CBV робити, то буде залегко:) і можна не до кінця зрозуміти як воно працює  ","created_at":"2018-03-04T19:17:05Z","updated_at":"2018-03-04T19:17:05Z","html_url":"https://github.com/nazarred/shop/pull/2#discussion_r172060489","pull_request_url":"https://api.github.com/repos/nazarred/shop/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nazarred/shop/pulls/comments/172060489"},"html":{"href":"https://github.com/nazarred/shop/pull/2#discussion_r172060489"},"pull_request":{"href":"https://api.github.com/repos/nazarred/shop/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nazarred/shop/pulls/2","id":171220455,"html_url":"https://github.com/nazarred/shop/pull/2","diff_url":"https://github.com/nazarred/shop/pull/2.diff","patch_url":"https://github.com/nazarred/shop/pull/2.patch","issue_url":"https://api.github.com/repos/nazarred/shop/issues/2","number":2,"state":"open","locked":false,"title":"Ajax","user":{"login":"nazarred","id":34417569,"avatar_url":"https://avatars1.githubusercontent.com/u/34417569?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarred","html_url":"https://github.com/nazarred","followers_url":"https://api.github.com/users/nazarred/followers","following_url":"https://api.github.com/users/nazarred/following{/other_user}","gists_url":"https://api.github.com/users/nazarred/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarred/subscriptions","organizations_url":"https://api.github.com/users/nazarred/orgs","repos_url":"https://api.github.com/users/nazarred/repos","events_url":"https://api.github.com/users/nazarred/events{/privacy}","received_events_url":"https://api.github.com/users/nazarred/received_events","type":"User","site_admin":false},"body":"Добавив рейтинг зірочками (Ajax)\r\nВиправив деякі помилки\r\nUrl продукту через get_absolute_url\r\nПостарався зменшити к-сть запитів до БД ","created_at":"2018-02-25T09:03:04Z","updated_at":"2018-03-04T19:17:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fb6eba2e3623e6c897574459b08e46afe1e3375","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nazarred/shop/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nazarred/shop/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nazarred/shop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nazarred/shop/issues/2/comments","statuses_url":"https://api.github.com/repos/nazarred/shop/statuses/a512df2f3f825e3e433825bed9429409bf5f98b6","head":{"label":"nazarred:ajax","ref":"ajax","sha":"a512df2f3f825e3e433825bed9429409bf5f98b6","user":{"login":"nazarred","id":34417569,"avatar_url":"https://avatars1.githubusercontent.com/u/34417569?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarred","html_url":"https://github.com/nazarred","followers_url":"https://api.github.com/users/nazarred/followers","following_url":"https://api.github.com/users/nazarred/following{/other_user}","gists_url":"https://api.github.com/users/nazarred/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarred/subscriptions","organizations_url":"https://api.github.com/users/nazarred/orgs","repos_url":"https://api.github.com/users/nazarred/repos","events_url":"https://api.github.com/users/nazarred/events{/privacy}","received_events_url":"https://api.github.com/users/nazarred/received_events","type":"User","site_admin":false},"repo":{"id":121764037,"name":"shop","full_name":"nazarred/shop","owner":{"login":"nazarred","id":34417569,"avatar_url":"https://avatars1.githubusercontent.com/u/34417569?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarred","html_url":"https://github.com/nazarred","followers_url":"https://api.github.com/users/nazarred/followers","following_url":"https://api.github.com/users/nazarred/following{/other_user}","gists_url":"https://api.github.com/users/nazarred/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarred/subscriptions","organizations_url":"https://api.github.com/users/nazarred/orgs","repos_url":"https://api.github.com/users/nazarred/repos","events_url":"https://api.github.com/users/nazarred/events{/privacy}","received_events_url":"https://api.github.com/users/nazarred/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nazarred/shop","description":null,"fork":false,"url":"https://api.github.com/repos/nazarred/shop","forks_url":"https://api.github.com/repos/nazarred/shop/forks","keys_url":"https://api.github.com/repos/nazarred/shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nazarred/shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nazarred/shop/teams","hooks_url":"https://api.github.com/repos/nazarred/shop/hooks","issue_events_url":"https://api.github.com/repos/nazarred/shop/issues/events{/number}","events_url":"https://api.github.com/repos/nazarred/shop/events","assignees_url":"https://api.github.com/repos/nazarred/shop/assignees{/user}","branches_url":"https://api.github.com/repos/nazarred/shop/branches{/branch}","tags_url":"https://api.github.com/repos/nazarred/shop/tags","blobs_url":"https://api.github.com/repos/nazarred/shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nazarred/shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nazarred/shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/nazarred/shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nazarred/shop/statuses/{sha}","languages_url":"https://api.github.com/repos/nazarred/shop/languages","stargazers_url":"https://api.github.com/repos/nazarred/shop/stargazers","contributors_url":"https://api.github.com/repos/nazarred/shop/contributors","subscribers_url":"https://api.github.com/repos/nazarred/shop/subscribers","subscription_url":"https://api.github.com/repos/nazarred/shop/subscription","commits_url":"https://api.github.com/repos/nazarred/shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/nazarred/shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/nazarred/shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/nazarred/shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/nazarred/shop/contents/{+path}","compare_url":"https://api.github.com/repos/nazarred/shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nazarred/shop/merges","archive_url":"https://api.github.com/repos/nazarred/shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nazarred/shop/downloads","issues_url":"https://api.github.com/repos/nazarred/shop/issues{/number}","pulls_url":"https://api.github.com/repos/nazarred/shop/pulls{/number}","milestones_url":"https://api.github.com/repos/nazarred/shop/milestones{/number}","notifications_url":"https://api.github.com/repos/nazarred/shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nazarred/shop/labels{/name}","releases_url":"https://api.github.com/repos/nazarred/shop/releases{/id}","deployments_url":"https://api.github.com/repos/nazarred/shop/deployments","created_at":"2018-02-16T15:06:44Z","updated_at":"2018-02-16T15:30:12Z","pushed_at":"2018-03-03T12:32:38Z","git_url":"git://github.com/nazarred/shop.git","ssh_url":"git@github.com:nazarred/shop.git","clone_url":"https://github.com/nazarred/shop.git","svn_url":"https://github.com/nazarred/shop","homepage":null,"size":3479,"stargazers_count":0,"watchers_count":0,"language":"Python","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"nazarred:master","ref":"master","sha":"5be03209c2c921aadef25ac3212cd63467ecea38","user":{"login":"nazarred","id":34417569,"avatar_url":"https://avatars1.githubusercontent.com/u/34417569?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarred","html_url":"https://github.com/nazarred","followers_url":"https://api.github.com/users/nazarred/followers","following_url":"https://api.github.com/users/nazarred/following{/other_user}","gists_url":"https://api.github.com/users/nazarred/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarred/subscriptions","organizations_url":"https://api.github.com/users/nazarred/orgs","repos_url":"https://api.github.com/users/nazarred/repos","events_url":"https://api.github.com/users/nazarred/events{/privacy}","received_events_url":"https://api.github.com/users/nazarred/received_events","type":"User","site_admin":false},"repo":{"id":121764037,"name":"shop","full_name":"nazarred/shop","owner":{"login":"nazarred","id":34417569,"avatar_url":"https://avatars1.githubusercontent.com/u/34417569?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarred","html_url":"https://github.com/nazarred","followers_url":"https://api.github.com/users/nazarred/followers","following_url":"https://api.github.com/users/nazarred/following{/other_user}","gists_url":"https://api.github.com/users/nazarred/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarred/subscriptions","organizations_url":"https://api.github.com/users/nazarred/orgs","repos_url":"https://api.github.com/users/nazarred/repos","events_url":"https://api.github.com/users/nazarred/events{/privacy}","received_events_url":"https://api.github.com/users/nazarred/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nazarred/shop","description":null,"fork":false,"url":"https://api.github.com/repos/nazarred/shop","forks_url":"https://api.github.com/repos/nazarred/shop/forks","keys_url":"https://api.github.com/repos/nazarred/shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nazarred/shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nazarred/shop/teams","hooks_url":"https://api.github.com/repos/nazarred/shop/hooks","issue_events_url":"https://api.github.com/repos/nazarred/shop/issues/events{/number}","events_url":"https://api.github.com/repos/nazarred/shop/events","assignees_url":"https://api.github.com/repos/nazarred/shop/assignees{/user}","branches_url":"https://api.github.com/repos/nazarred/shop/branches{/branch}","tags_url":"https://api.github.com/repos/nazarred/shop/tags","blobs_url":"https://api.github.com/repos/nazarred/shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nazarred/shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nazarred/shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/nazarred/shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nazarred/shop/statuses/{sha}","languages_url":"https://api.github.com/repos/nazarred/shop/languages","stargazers_url":"https://api.github.com/repos/nazarred/shop/stargazers","contributors_url":"https://api.github.com/repos/nazarred/shop/contributors","subscribers_url":"https://api.github.com/repos/nazarred/shop/subscribers","subscription_url":"https://api.github.com/repos/nazarred/shop/subscription","commits_url":"https://api.github.com/repos/nazarred/shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/nazarred/shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/nazarred/shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/nazarred/shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/nazarred/shop/contents/{+path}","compare_url":"https://api.github.com/repos/nazarred/shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nazarred/shop/merges","archive_url":"https://api.github.com/repos/nazarred/shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nazarred/shop/downloads","issues_url":"https://api.github.com/repos/nazarred/shop/issues{/number}","pulls_url":"https://api.github.com/repos/nazarred/shop/pulls{/number}","milestones_url":"https://api.github.com/repos/nazarred/shop/milestones{/number}","notifications_url":"https://api.github.com/repos/nazarred/shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nazarred/shop/labels{/name}","releases_url":"https://api.github.com/repos/nazarred/shop/releases{/id}","deployments_url":"https://api.github.com/repos/nazarred/shop/deployments","created_at":"2018-02-16T15:06:44Z","updated_at":"2018-02-16T15:30:12Z","pushed_at":"2018-03-03T12:32:38Z","git_url":"git://github.com/nazarred/shop.git","ssh_url":"git@github.com:nazarred/shop.git","clone_url":"https://github.com/nazarred/shop.git","svn_url":"https://github.com/nazarred/shop","homepage":null,"size":3479,"stargazers_count":0,"watchers_count":0,"language":"Python","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nazarred/shop/pulls/2"},"html":{"href":"https://github.com/nazarred/shop/pull/2"},"issue":{"href":"https://api.github.com/repos/nazarred/shop/issues/2"},"comments":{"href":"https://api.github.com/repos/nazarred/shop/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nazarred/shop/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nazarred/shop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nazarred/shop/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nazarred/shop/statuses/a512df2f3f825e3e433825bed9429409bf5f98b6"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kotzila"}}