{"action":"created","comment":{"url":"https://api.github.com/repos/DSIW/sdf/pulls/comments/43234452","id":43234452,"diff_hunk":"@@ -19,6 +25,20 @@ def get_context_data(self, **kwargs):\n         context = super(StartPageView, self).get_context_data(**kwargs)\n         return context\n \n+def register_user(request):\n+    args = {}\n+    #csrf = Cross Site Request Forgery protection middleware\n+    args.update(csrf(request))\n+    if request.method == 'POST':\n+        args['form'] = RegistrationForm(request.POST)","path":"app/views.py","position":29,"original_position":29,"commit_id":"7ccaf67fbad590646f8a39141571e69b67bb01bb","original_commit_id":"110736a8043c3687550303a4a555e1f6135a57fd","user":{"login":"DSIW","id":744745,"avatar_url":"https://avatars.githubusercontent.com/u/744745?v=3","gravatar_id":"","url":"https://api.github.com/users/DSIW","html_url":"https://github.com/DSIW","followers_url":"https://api.github.com/users/DSIW/followers","following_url":"https://api.github.com/users/DSIW/following{/other_user}","gists_url":"https://api.github.com/users/DSIW/gists{/gist_id}","starred_url":"https://api.github.com/users/DSIW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSIW/subscriptions","organizations_url":"https://api.github.com/users/DSIW/orgs","repos_url":"https://api.github.com/users/DSIW/repos","events_url":"https://api.github.com/users/DSIW/events{/privacy}","received_events_url":"https://api.github.com/users/DSIW/received_events","type":"User","site_admin":false},"body":"Man könnte auch das machen `render_to_response('...', {form: form}.update(csrf(request)))`. Wie du magst.","created_at":"2015-10-28T09:48:40Z","updated_at":"2015-10-28T09:48:40Z","html_url":"https://github.com/DSIW/sdf/pull/2#discussion_r43234452","pull_request_url":"https://api.github.com/repos/DSIW/sdf/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/DSIW/sdf/pulls/comments/43234452"},"html":{"href":"https://github.com/DSIW/sdf/pull/2#discussion_r43234452"},"pull_request":{"href":"https://api.github.com/repos/DSIW/sdf/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/DSIW/sdf/pulls/2","id":48946240,"html_url":"https://github.com/DSIW/sdf/pull/2","diff_url":"https://github.com/DSIW/sdf/pull/2.diff","patch_url":"https://github.com/DSIW/sdf/pull/2.patch","issue_url":"https://api.github.com/repos/DSIW/sdf/issues/2","number":2,"state":"open","locked":false,"title":"Feature/signup","user":{"login":"ottmann","id":15220381,"avatar_url":"https://avatars.githubusercontent.com/u/15220381?v=3","gravatar_id":"","url":"https://api.github.com/users/ottmann","html_url":"https://github.com/ottmann","followers_url":"https://api.github.com/users/ottmann/followers","following_url":"https://api.github.com/users/ottmann/following{/other_user}","gists_url":"https://api.github.com/users/ottmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ottmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottmann/subscriptions","organizations_url":"https://api.github.com/users/ottmann/orgs","repos_url":"https://api.github.com/users/ottmann/repos","events_url":"https://api.github.com/users/ottmann/events{/privacy}","received_events_url":"https://api.github.com/users/ottmann/received_events","type":"User","site_admin":false},"body":"Es wurde die Registrierung von Nutzern hinzugefügt. \r\nBasis ist das User-Managment von Django wobei bereits ein eigenens User-Model genutzt wird, welches auf dem default User-Model aufbaut. Zusätzlich wurde das UserCreationForm von Django entsprechend angepasst/ergänzt","created_at":"2015-10-27T23:19:31Z","updated_at":"2015-10-28T09:48:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DSIW/sdf/pulls/2/commits","review_comments_url":"https://api.github.com/repos/DSIW/sdf/pulls/2/comments","review_comment_url":"https://api.github.com/repos/DSIW/sdf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DSIW/sdf/issues/2/comments","statuses_url":"https://api.github.com/repos/DSIW/sdf/statuses/7ccaf67fbad590646f8a39141571e69b67bb01bb","head":{"label":"DSIW:feature/signup","ref":"feature/signup","sha":"7ccaf67fbad590646f8a39141571e69b67bb01bb","user":{"login":"DSIW","id":744745,"avatar_url":"https://avatars.githubusercontent.com/u/744745?v=3","gravatar_id":"","url":"https://api.github.com/users/DSIW","html_url":"https://github.com/DSIW","followers_url":"https://api.github.com/users/DSIW/followers","following_url":"https://api.github.com/users/DSIW/following{/other_user}","gists_url":"https://api.github.com/users/DSIW/gists{/gist_id}","starred_url":"https://api.github.com/users/DSIW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSIW/subscriptions","organizations_url":"https://api.github.com/users/DSIW/orgs","repos_url":"https://api.github.com/users/DSIW/repos","events_url":"https://api.github.com/users/DSIW/events{/privacy}","received_events_url":"https://api.github.com/users/DSIW/received_events","type":"User","site_admin":false},"repo":{"id":44266686,"name":"sdf","full_name":"DSIW/sdf","owner":{"login":"DSIW","id":744745,"avatar_url":"https://avatars.githubusercontent.com/u/744745?v=3","gravatar_id":"","url":"https://api.github.com/users/DSIW","html_url":"https://github.com/DSIW","followers_url":"https://api.github.com/users/DSIW/followers","following_url":"https://api.github.com/users/DSIW/following{/other_user}","gists_url":"https://api.github.com/users/DSIW/gists{/gist_id}","starred_url":"https://api.github.com/users/DSIW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSIW/subscriptions","organizations_url":"https://api.github.com/users/DSIW/orgs","repos_url":"https://api.github.com/users/DSIW/repos","events_url":"https://api.github.com/users/DSIW/events{/privacy}","received_events_url":"https://api.github.com/users/DSIW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DSIW/sdf","description":"SecondHandbookBooks (SHB) is a community driven platform for second hand books written in Python.","fork":false,"url":"https://api.github.com/repos/DSIW/sdf","forks_url":"https://api.github.com/repos/DSIW/sdf/forks","keys_url":"https://api.github.com/repos/DSIW/sdf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DSIW/sdf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DSIW/sdf/teams","hooks_url":"https://api.github.com/repos/DSIW/sdf/hooks","issue_events_url":"https://api.github.com/repos/DSIW/sdf/issues/events{/number}","events_url":"https://api.github.com/repos/DSIW/sdf/events","assignees_url":"https://api.github.com/repos/DSIW/sdf/assignees{/user}","branches_url":"https://api.github.com/repos/DSIW/sdf/branches{/branch}","tags_url":"https://api.github.com/repos/DSIW/sdf/tags","blobs_url":"https://api.github.com/repos/DSIW/sdf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DSIW/sdf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DSIW/sdf/git/refs{/sha}","trees_url":"https://api.github.com/repos/DSIW/sdf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DSIW/sdf/statuses/{sha}","languages_url":"https://api.github.com/repos/DSIW/sdf/languages","stargazers_url":"https://api.github.com/repos/DSIW/sdf/stargazers","contributors_url":"https://api.github.com/repos/DSIW/sdf/contributors","subscribers_url":"https://api.github.com/repos/DSIW/sdf/subscribers","subscription_url":"https://api.github.com/repos/DSIW/sdf/subscription","commits_url":"https://api.github.com/repos/DSIW/sdf/commits{/sha}","git_commits_url":"https://api.github.com/repos/DSIW/sdf/git/commits{/sha}","comments_url":"https://api.github.com/repos/DSIW/sdf/comments{/number}","issue_comment_url":"https://api.github.com/repos/DSIW/sdf/issues/comments{/number}","contents_url":"https://api.github.com/repos/DSIW/sdf/contents/{+path}","compare_url":"https://api.github.com/repos/DSIW/sdf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DSIW/sdf/merges","archive_url":"https://api.github.com/repos/DSIW/sdf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DSIW/sdf/downloads","issues_url":"https://api.github.com/repos/DSIW/sdf/issues{/number}","pulls_url":"https://api.github.com/repos/DSIW/sdf/pulls{/number}","milestones_url":"https://api.github.com/repos/DSIW/sdf/milestones{/number}","notifications_url":"https://api.github.com/repos/DSIW/sdf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DSIW/sdf/labels{/name}","releases_url":"https://api.github.com/repos/DSIW/sdf/releases{/id}","created_at":"2015-10-14T18:04:27Z","updated_at":"2015-10-25T23:45:09Z","pushed_at":"2015-10-28T09:47:48Z","git_url":"git://github.com/DSIW/sdf.git","ssh_url":"git@github.com:DSIW/sdf.git","clone_url":"https://github.com/DSIW/sdf.git","svn_url":"https://github.com/DSIW/sdf","homepage":"","size":376,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"DSIW:develop","ref":"develop","sha":"df06e8f0bf63a964ab046220847498eedb4cba33","user":{"login":"DSIW","id":744745,"avatar_url":"https://avatars.githubusercontent.com/u/744745?v=3","gravatar_id":"","url":"https://api.github.com/users/DSIW","html_url":"https://github.com/DSIW","followers_url":"https://api.github.com/users/DSIW/followers","following_url":"https://api.github.com/users/DSIW/following{/other_user}","gists_url":"https://api.github.com/users/DSIW/gists{/gist_id}","starred_url":"https://api.github.com/users/DSIW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSIW/subscriptions","organizations_url":"https://api.github.com/users/DSIW/orgs","repos_url":"https://api.github.com/users/DSIW/repos","events_url":"https://api.github.com/users/DSIW/events{/privacy}","received_events_url":"https://api.github.com/users/DSIW/received_events","type":"User","site_admin":false},"repo":{"id":44266686,"name":"sdf","full_name":"DSIW/sdf","owner":{"login":"DSIW","id":744745,"avatar_url":"https://avatars.githubusercontent.com/u/744745?v=3","gravatar_id":"","url":"https://api.github.com/users/DSIW","html_url":"https://github.com/DSIW","followers_url":"https://api.github.com/users/DSIW/followers","following_url":"https://api.github.com/users/DSIW/following{/other_user}","gists_url":"https://api.github.com/users/DSIW/gists{/gist_id}","starred_url":"https://api.github.com/users/DSIW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSIW/subscriptions","organizations_url":"https://api.github.com/users/DSIW/orgs","repos_url":"https://api.github.com/users/DSIW/repos","events_url":"https://api.github.com/users/DSIW/events{/privacy}","received_events_url":"https://api.github.com/users/DSIW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DSIW/sdf","description":"SecondHandbookBooks (SHB) is a community driven platform for second hand books written in Python.","fork":false,"url":"https://api.github.com/repos/DSIW/sdf","forks_url":"https://api.github.com/repos/DSIW/sdf/forks","keys_url":"https://api.github.com/repos/DSIW/sdf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DSIW/sdf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DSIW/sdf/teams","hooks_url":"https://api.github.com/repos/DSIW/sdf/hooks","issue_events_url":"https://api.github.com/repos/DSIW/sdf/issues/events{/number}","events_url":"https://api.github.com/repos/DSIW/sdf/events","assignees_url":"https://api.github.com/repos/DSIW/sdf/assignees{/user}","branches_url":"https://api.github.com/repos/DSIW/sdf/branches{/branch}","tags_url":"https://api.github.com/repos/DSIW/sdf/tags","blobs_url":"https://api.github.com/repos/DSIW/sdf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DSIW/sdf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DSIW/sdf/git/refs{/sha}","trees_url":"https://api.github.com/repos/DSIW/sdf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DSIW/sdf/statuses/{sha}","languages_url":"https://api.github.com/repos/DSIW/sdf/languages","stargazers_url":"https://api.github.com/repos/DSIW/sdf/stargazers","contributors_url":"https://api.github.com/repos/DSIW/sdf/contributors","subscribers_url":"https://api.github.com/repos/DSIW/sdf/subscribers","subscription_url":"https://api.github.com/repos/DSIW/sdf/subscription","commits_url":"https://api.github.com/repos/DSIW/sdf/commits{/sha}","git_commits_url":"https://api.github.com/repos/DSIW/sdf/git/commits{/sha}","comments_url":"https://api.github.com/repos/DSIW/sdf/comments{/number}","issue_comment_url":"https://api.github.com/repos/DSIW/sdf/issues/comments{/number}","contents_url":"https://api.github.com/repos/DSIW/sdf/contents/{+path}","compare_url":"https://api.github.com/repos/DSIW/sdf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DSIW/sdf/merges","archive_url":"https://api.github.com/repos/DSIW/sdf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DSIW/sdf/downloads","issues_url":"https://api.github.com/repos/DSIW/sdf/issues{/number}","pulls_url":"https://api.github.com/repos/DSIW/sdf/pulls{/number}","milestones_url":"https://api.github.com/repos/DSIW/sdf/milestones{/number}","notifications_url":"https://api.github.com/repos/DSIW/sdf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DSIW/sdf/labels{/name}","releases_url":"https://api.github.com/repos/DSIW/sdf/releases{/id}","created_at":"2015-10-14T18:04:27Z","updated_at":"2015-10-25T23:45:09Z","pushed_at":"2015-10-28T09:47:48Z","git_url":"git://github.com/DSIW/sdf.git","ssh_url":"git@github.com:DSIW/sdf.git","clone_url":"https://github.com/DSIW/sdf.git","svn_url":"https://github.com/DSIW/sdf","homepage":"","size":376,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/DSIW/sdf/pulls/2"},"html":{"href":"https://github.com/DSIW/sdf/pull/2"},"issue":{"href":"https://api.github.com/repos/DSIW/sdf/issues/2"},"comments":{"href":"https://api.github.com/repos/DSIW/sdf/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/DSIW/sdf/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/DSIW/sdf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DSIW/sdf/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/DSIW/sdf/statuses/7ccaf67fbad590646f8a39141571e69b67bb01bb"}}}}