{"action":"created","comment":{"url":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/comments/178442059","pull_request_review_id":108502746,"id":178442059,"diff_hunk":"@@ -33,4 +33,16 @@ def clean_postal_code(self):\n         postal_code = self.cleaned_data['postal_code']\n         if not PostalCodeValidator().is_valid(country_code, postal_code):\n             raise ValidationError(\"Enter postal code appropriate for your country.\")\n-        return country_code\n\\ No newline at end of file\n+        return postal_code\n+\n+\n+class RegistrationForm(forms.Form):\n+    password = forms.CharField(widget=forms.PasswordInput(attrs={'class': 'form-control', 'id': 'reg-pass'}))\n+    repeat_password = forms.CharField(widget=forms.PasswordInput(attrs={'class': 'form-control', 'id': 'reg-pass-confirm'}))\n+\n+    def clean_repeat_password(self):\n+        password1 = self.cleaned_data['password']\n+        password2 = self.cleaned_data['repeat_password']\n+        if password1 != password2:\n+            raise forms.ValidationError(\"Passwords should be identical.\")","path":"online_shop/forms.py","position":17,"original_position":17,"commit_id":"f17bca639947e4364aaeb5fea3a5e6638276a42f","original_commit_id":"f17bca639947e4364aaeb5fea3a5e6638276a42f","user":{"login":"pawel-krysiak","id":13624801,"avatar_url":"https://avatars2.githubusercontent.com/u/13624801?v=4","gravatar_id":"","url":"https://api.github.com/users/pawel-krysiak","html_url":"https://github.com/pawel-krysiak","followers_url":"https://api.github.com/users/pawel-krysiak/followers","following_url":"https://api.github.com/users/pawel-krysiak/following{/other_user}","gists_url":"https://api.github.com/users/pawel-krysiak/gists{/gist_id}","starred_url":"https://api.github.com/users/pawel-krysiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawel-krysiak/subscriptions","organizations_url":"https://api.github.com/users/pawel-krysiak/orgs","repos_url":"https://api.github.com/users/pawel-krysiak/repos","events_url":"https://api.github.com/users/pawel-krysiak/events{/privacy}","received_events_url":"https://api.github.com/users/pawel-krysiak/received_events","type":"User","site_admin":false},"body":"👌 \r\n","created_at":"2018-03-31T21:05:28Z","updated_at":"2018-03-31T21:12:57Z","html_url":"https://github.com/PolishProjects/OnlineShop/pull/7#discussion_r178442059","pull_request_url":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/7","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/comments/178442059"},"html":{"href":"https://github.com/PolishProjects/OnlineShop/pull/7#discussion_r178442059"},"pull_request":{"href":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/7","id":178695655,"html_url":"https://github.com/PolishProjects/OnlineShop/pull/7","diff_url":"https://github.com/PolishProjects/OnlineShop/pull/7.diff","patch_url":"https://github.com/PolishProjects/OnlineShop/pull/7.patch","issue_url":"https://api.github.com/repos/PolishProjects/OnlineShop/issues/7","number":7,"state":"open","locked":false,"title":"Validation, order for the logged user and uptade data","user":{"login":"hubert-hernoga","id":24432064,"avatar_url":"https://avatars2.githubusercontent.com/u/24432064?v=4","gravatar_id":"","url":"https://api.github.com/users/hubert-hernoga","html_url":"https://github.com/hubert-hernoga","followers_url":"https://api.github.com/users/hubert-hernoga/followers","following_url":"https://api.github.com/users/hubert-hernoga/following{/other_user}","gists_url":"https://api.github.com/users/hubert-hernoga/gists{/gist_id}","starred_url":"https://api.github.com/users/hubert-hernoga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubert-hernoga/subscriptions","organizations_url":"https://api.github.com/users/hubert-hernoga/orgs","repos_url":"https://api.github.com/users/hubert-hernoga/repos","events_url":"https://api.github.com/users/hubert-hernoga/events{/privacy}","received_events_url":"https://api.github.com/users/hubert-hernoga/received_events","type":"User","site_admin":false},"body":"Validation of the registration form and creation of order for the logged user and updating of the logged in user data","created_at":"2018-03-31T18:57:29Z","updated_at":"2018-03-31T21:12:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eec7a3fbe9d298d075a1789cdc93dcddd8f98a48","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/7/commits","review_comments_url":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/7/comments","review_comment_url":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolishProjects/OnlineShop/issues/7/comments","statuses_url":"https://api.github.com/repos/PolishProjects/OnlineShop/statuses/f17bca639947e4364aaeb5fea3a5e6638276a42f","head":{"label":"PolishProjects:registration_forms_validation","ref":"registration_forms_validation","sha":"f17bca639947e4364aaeb5fea3a5e6638276a42f","user":{"login":"PolishProjects","id":37515809,"avatar_url":"https://avatars2.githubusercontent.com/u/37515809?v=4","gravatar_id":"","url":"https://api.github.com/users/PolishProjects","html_url":"https://github.com/PolishProjects","followers_url":"https://api.github.com/users/PolishProjects/followers","following_url":"https://api.github.com/users/PolishProjects/following{/other_user}","gists_url":"https://api.github.com/users/PolishProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/PolishProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolishProjects/subscriptions","organizations_url":"https://api.github.com/users/PolishProjects/orgs","repos_url":"https://api.github.com/users/PolishProjects/repos","events_url":"https://api.github.com/users/PolishProjects/events{/privacy}","received_events_url":"https://api.github.com/users/PolishProjects/received_events","type":"Organization","site_admin":false},"repo":{"id":123791946,"name":"OnlineShop","full_name":"PolishProjects/OnlineShop","owner":{"login":"PolishProjects","id":37515809,"avatar_url":"https://avatars2.githubusercontent.com/u/37515809?v=4","gravatar_id":"","url":"https://api.github.com/users/PolishProjects","html_url":"https://github.com/PolishProjects","followers_url":"https://api.github.com/users/PolishProjects/followers","following_url":"https://api.github.com/users/PolishProjects/following{/other_user}","gists_url":"https://api.github.com/users/PolishProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/PolishProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolishProjects/subscriptions","organizations_url":"https://api.github.com/users/PolishProjects/orgs","repos_url":"https://api.github.com/users/PolishProjects/repos","events_url":"https://api.github.com/users/PolishProjects/events{/privacy}","received_events_url":"https://api.github.com/users/PolishProjects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolishProjects/OnlineShop","description":null,"fork":false,"url":"https://api.github.com/repos/PolishProjects/OnlineShop","forks_url":"https://api.github.com/repos/PolishProjects/OnlineShop/forks","keys_url":"https://api.github.com/repos/PolishProjects/OnlineShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolishProjects/OnlineShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolishProjects/OnlineShop/teams","hooks_url":"https://api.github.com/repos/PolishProjects/OnlineShop/hooks","issue_events_url":"https://api.github.com/repos/PolishProjects/OnlineShop/issues/events{/number}","events_url":"https://api.github.com/repos/PolishProjects/OnlineShop/events","assignees_url":"https://api.github.com/repos/PolishProjects/OnlineShop/assignees{/user}","branches_url":"https://api.github.com/repos/PolishProjects/OnlineShop/branches{/branch}","tags_url":"https://api.github.com/repos/PolishProjects/OnlineShop/tags","blobs_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolishProjects/OnlineShop/statuses/{sha}","languages_url":"https://api.github.com/repos/PolishProjects/OnlineShop/languages","stargazers_url":"https://api.github.com/repos/PolishProjects/OnlineShop/stargazers","contributors_url":"https://api.github.com/repos/PolishProjects/OnlineShop/contributors","subscribers_url":"https://api.github.com/repos/PolishProjects/OnlineShop/subscribers","subscription_url":"https://api.github.com/repos/PolishProjects/OnlineShop/subscription","commits_url":"https://api.github.com/repos/PolishProjects/OnlineShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolishProjects/OnlineShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolishProjects/OnlineShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolishProjects/OnlineShop/contents/{+path}","compare_url":"https://api.github.com/repos/PolishProjects/OnlineShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolishProjects/OnlineShop/merges","archive_url":"https://api.github.com/repos/PolishProjects/OnlineShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolishProjects/OnlineShop/downloads","issues_url":"https://api.github.com/repos/PolishProjects/OnlineShop/issues{/number}","pulls_url":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls{/number}","milestones_url":"https://api.github.com/repos/PolishProjects/OnlineShop/milestones{/number}","notifications_url":"https://api.github.com/repos/PolishProjects/OnlineShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolishProjects/OnlineShop/labels{/name}","releases_url":"https://api.github.com/repos/PolishProjects/OnlineShop/releases{/id}","deployments_url":"https://api.github.com/repos/PolishProjects/OnlineShop/deployments","created_at":"2018-03-04T13:37:43Z","updated_at":"2018-03-30T21:07:38Z","pushed_at":"2018-03-31T18:57:30Z","git_url":"git://github.com/PolishProjects/OnlineShop.git","ssh_url":"git@github.com:PolishProjects/OnlineShop.git","clone_url":"https://github.com/PolishProjects/OnlineShop.git","svn_url":"https://github.com/PolishProjects/OnlineShop","homepage":null,"size":11289,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"PolishProjects:master","ref":"master","sha":"3e3a46ff46b3ece385ce6a691a8b6fa910a5e8eb","user":{"login":"PolishProjects","id":37515809,"avatar_url":"https://avatars2.githubusercontent.com/u/37515809?v=4","gravatar_id":"","url":"https://api.github.com/users/PolishProjects","html_url":"https://github.com/PolishProjects","followers_url":"https://api.github.com/users/PolishProjects/followers","following_url":"https://api.github.com/users/PolishProjects/following{/other_user}","gists_url":"https://api.github.com/users/PolishProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/PolishProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolishProjects/subscriptions","organizations_url":"https://api.github.com/users/PolishProjects/orgs","repos_url":"https://api.github.com/users/PolishProjects/repos","events_url":"https://api.github.com/users/PolishProjects/events{/privacy}","received_events_url":"https://api.github.com/users/PolishProjects/received_events","type":"Organization","site_admin":false},"repo":{"id":123791946,"name":"OnlineShop","full_name":"PolishProjects/OnlineShop","owner":{"login":"PolishProjects","id":37515809,"avatar_url":"https://avatars2.githubusercontent.com/u/37515809?v=4","gravatar_id":"","url":"https://api.github.com/users/PolishProjects","html_url":"https://github.com/PolishProjects","followers_url":"https://api.github.com/users/PolishProjects/followers","following_url":"https://api.github.com/users/PolishProjects/following{/other_user}","gists_url":"https://api.github.com/users/PolishProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/PolishProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolishProjects/subscriptions","organizations_url":"https://api.github.com/users/PolishProjects/orgs","repos_url":"https://api.github.com/users/PolishProjects/repos","events_url":"https://api.github.com/users/PolishProjects/events{/privacy}","received_events_url":"https://api.github.com/users/PolishProjects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolishProjects/OnlineShop","description":null,"fork":false,"url":"https://api.github.com/repos/PolishProjects/OnlineShop","forks_url":"https://api.github.com/repos/PolishProjects/OnlineShop/forks","keys_url":"https://api.github.com/repos/PolishProjects/OnlineShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolishProjects/OnlineShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolishProjects/OnlineShop/teams","hooks_url":"https://api.github.com/repos/PolishProjects/OnlineShop/hooks","issue_events_url":"https://api.github.com/repos/PolishProjects/OnlineShop/issues/events{/number}","events_url":"https://api.github.com/repos/PolishProjects/OnlineShop/events","assignees_url":"https://api.github.com/repos/PolishProjects/OnlineShop/assignees{/user}","branches_url":"https://api.github.com/repos/PolishProjects/OnlineShop/branches{/branch}","tags_url":"https://api.github.com/repos/PolishProjects/OnlineShop/tags","blobs_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolishProjects/OnlineShop/statuses/{sha}","languages_url":"https://api.github.com/repos/PolishProjects/OnlineShop/languages","stargazers_url":"https://api.github.com/repos/PolishProjects/OnlineShop/stargazers","contributors_url":"https://api.github.com/repos/PolishProjects/OnlineShop/contributors","subscribers_url":"https://api.github.com/repos/PolishProjects/OnlineShop/subscribers","subscription_url":"https://api.github.com/repos/PolishProjects/OnlineShop/subscription","commits_url":"https://api.github.com/repos/PolishProjects/OnlineShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolishProjects/OnlineShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolishProjects/OnlineShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolishProjects/OnlineShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolishProjects/OnlineShop/contents/{+path}","compare_url":"https://api.github.com/repos/PolishProjects/OnlineShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolishProjects/OnlineShop/merges","archive_url":"https://api.github.com/repos/PolishProjects/OnlineShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolishProjects/OnlineShop/downloads","issues_url":"https://api.github.com/repos/PolishProjects/OnlineShop/issues{/number}","pulls_url":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls{/number}","milestones_url":"https://api.github.com/repos/PolishProjects/OnlineShop/milestones{/number}","notifications_url":"https://api.github.com/repos/PolishProjects/OnlineShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolishProjects/OnlineShop/labels{/name}","releases_url":"https://api.github.com/repos/PolishProjects/OnlineShop/releases{/id}","deployments_url":"https://api.github.com/repos/PolishProjects/OnlineShop/deployments","created_at":"2018-03-04T13:37:43Z","updated_at":"2018-03-30T21:07:38Z","pushed_at":"2018-03-31T18:57:30Z","git_url":"git://github.com/PolishProjects/OnlineShop.git","ssh_url":"git@github.com:PolishProjects/OnlineShop.git","clone_url":"https://github.com/PolishProjects/OnlineShop.git","svn_url":"https://github.com/PolishProjects/OnlineShop","homepage":null,"size":11289,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/7"},"html":{"href":"https://github.com/PolishProjects/OnlineShop/pull/7"},"issue":{"href":"https://api.github.com/repos/PolishProjects/OnlineShop/issues/7"},"comments":{"href":"https://api.github.com/repos/PolishProjects/OnlineShop/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolishProjects/OnlineShop/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/PolishProjects/OnlineShop/statuses/f17bca639947e4364aaeb5fea3a5e6638276a42f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"pawel-krysiak"}}