{"action":"created","comment":{"url":"https://api.github.com/repos/praekelt/nurseconnect/pulls/comments/75479846","id":75479846,"diff_hunk":"@@ -1,15 +1,71 @@\n+from django.contrib.auth import authenticate, login\n+from django.contrib.auth.models import User\n from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger\n+from django.http import HttpResponseRedirect\n from django.shortcuts import render\n from django.utils.translation import get_language_from_request\n-\n-from molo.core.utils import get_locale_code\n+from django.views.generic import FormView\n+from django.views.generic import TemplateView\n from molo.core.models import ArticlePage\n+from molo.core.utils import get_locale_code\n+from molo.profiles import views\n+from nurseconnect import forms\n from wagtail.wagtailsearch.models import Query\n \n \n+class HomeView(TemplateView):\n+    template_name = \"core/main.html\"\n+\n+    def render_to_response(self, context, **response_kwargs):\n+        return render(self.request, self.template_name, context)\n+\n+\n+class NurseConnectRegistrationView(views.RegistrationView):\n+    form_class = forms.NurseConnectRegistrationForm\n+\n+    def form_valid(self, form):\n+        username = form.cleaned_data[\"username\"]\n+        password = form.cleaned_data[\"password\"]\n+\n+        user = User.objects.create_user(username=username, password=password)\n+        user.profile.mobile_number = form.cleaned_data[\"mobile_number\"]","path":"nurseconnect/views.py","position":null,"original_position":33,"commit_id":"c8b76b6cec4dc1942b4eb37ad760aead199d1bba","original_commit_id":"fb6c84a427f311734be8846485a2448aa497a24f","user":{"login":"chrislombaard","id":5526819,"avatar_url":"https://avatars.githubusercontent.com/u/5526819?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislombaard","html_url":"https://github.com/chrislombaard","followers_url":"https://api.github.com/users/chrislombaard/followers","following_url":"https://api.github.com/users/chrislombaard/following{/other_user}","gists_url":"https://api.github.com/users/chrislombaard/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislombaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislombaard/subscriptions","organizations_url":"https://api.github.com/users/chrislombaard/orgs","repos_url":"https://api.github.com/users/chrislombaard/repos","events_url":"https://api.github.com/users/chrislombaard/events{/privacy}","received_events_url":"https://api.github.com/users/chrislombaard/received_events","type":"User","site_admin":false},"body":"Removed this from the PR as it is not required for the deployment.","created_at":"2016-08-19T13:21:13Z","updated_at":"2016-08-19T13:21:13Z","html_url":"https://github.com/praekelt/nurseconnect/pull/26#discussion_r75479846","pull_request_url":"https://api.github.com/repos/praekelt/nurseconnect/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/praekelt/nurseconnect/pulls/comments/75479846"},"html":{"href":"https://github.com/praekelt/nurseconnect/pull/26#discussion_r75479846"},"pull_request":{"href":"https://api.github.com/repos/praekelt/nurseconnect/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/praekelt/nurseconnect/pulls/26","id":81776452,"html_url":"https://github.com/praekelt/nurseconnect/pull/26","diff_url":"https://github.com/praekelt/nurseconnect/pull/26.diff","patch_url":"https://github.com/praekelt/nurseconnect/pull/26.patch","issue_url":"https://api.github.com/repos/praekelt/nurseconnect/issues/26","number":26,"state":"open","locked":false,"title":"Feature/nur 1 bed","user":{"login":"chrislombaard","id":5526819,"avatar_url":"https://avatars.githubusercontent.com/u/5526819?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislombaard","html_url":"https://github.com/chrislombaard","followers_url":"https://api.github.com/users/chrislombaard/followers","following_url":"https://api.github.com/users/chrislombaard/following{/other_user}","gists_url":"https://api.github.com/users/chrislombaard/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislombaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislombaard/subscriptions","organizations_url":"https://api.github.com/users/chrislombaard/orgs","repos_url":"https://api.github.com/users/chrislombaard/repos","events_url":"https://api.github.com/users/chrislombaard/events{/privacy}","received_events_url":"https://api.github.com/users/chrislombaard/received_events","type":"User","site_admin":false},"body":"Integrated most of the FED templates with the nurseconnect project. All but the inbox, comments, search results, profile page and home page before login. User profile models have been created, mostly setup, and the first steps to form implementation have been done. Still a bit of work to be done on the views, forms and models, but most template integration has been done. ","created_at":"2016-08-18T08:35:38Z","updated_at":"2016-08-19T13:21:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b872b28e4776bee042c9b935349fb315025d7a86","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/praekelt/nurseconnect/pulls/26/commits","review_comments_url":"https://api.github.com/repos/praekelt/nurseconnect/pulls/26/comments","review_comment_url":"https://api.github.com/repos/praekelt/nurseconnect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/praekelt/nurseconnect/issues/26/comments","statuses_url":"https://api.github.com/repos/praekelt/nurseconnect/statuses/c8b76b6cec4dc1942b4eb37ad760aead199d1bba","head":{"label":"praekelt:feature/NUR-1-BED","ref":"feature/NUR-1-BED","sha":"c8b76b6cec4dc1942b4eb37ad760aead199d1bba","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":61537068,"name":"nurseconnect","full_name":"praekelt/nurseconnect","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/nurseconnect","description":"","fork":false,"url":"https://api.github.com/repos/praekelt/nurseconnect","forks_url":"https://api.github.com/repos/praekelt/nurseconnect/forks","keys_url":"https://api.github.com/repos/praekelt/nurseconnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/nurseconnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/nurseconnect/teams","hooks_url":"https://api.github.com/repos/praekelt/nurseconnect/hooks","issue_events_url":"https://api.github.com/repos/praekelt/nurseconnect/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/nurseconnect/events","assignees_url":"https://api.github.com/repos/praekelt/nurseconnect/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/nurseconnect/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/nurseconnect/tags","blobs_url":"https://api.github.com/repos/praekelt/nurseconnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/nurseconnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/nurseconnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/nurseconnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/nurseconnect/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/nurseconnect/languages","stargazers_url":"https://api.github.com/repos/praekelt/nurseconnect/stargazers","contributors_url":"https://api.github.com/repos/praekelt/nurseconnect/contributors","subscribers_url":"https://api.github.com/repos/praekelt/nurseconnect/subscribers","subscription_url":"https://api.github.com/repos/praekelt/nurseconnect/subscription","commits_url":"https://api.github.com/repos/praekelt/nurseconnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/nurseconnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/nurseconnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/nurseconnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/nurseconnect/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/nurseconnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/nurseconnect/merges","archive_url":"https://api.github.com/repos/praekelt/nurseconnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/nurseconnect/downloads","issues_url":"https://api.github.com/repos/praekelt/nurseconnect/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/nurseconnect/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/nurseconnect/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/nurseconnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/nurseconnect/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/nurseconnect/releases{/id}","deployments_url":"https://api.github.com/repos/praekelt/nurseconnect/deployments","created_at":"2016-06-20T10:00:06Z","updated_at":"2016-08-10T14:59:29Z","pushed_at":"2016-08-19T13:18:28Z","git_url":"git://github.com/praekelt/nurseconnect.git","ssh_url":"git@github.com:praekelt/nurseconnect.git","clone_url":"https://github.com/praekelt/nurseconnect.git","svn_url":"https://github.com/praekelt/nurseconnect","homepage":null,"size":2331,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"praekelt:develop","ref":"develop","sha":"c4556800a86133e358b1835d89c655a0a422f5a6","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":61537068,"name":"nurseconnect","full_name":"praekelt/nurseconnect","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/nurseconnect","description":"","fork":false,"url":"https://api.github.com/repos/praekelt/nurseconnect","forks_url":"https://api.github.com/repos/praekelt/nurseconnect/forks","keys_url":"https://api.github.com/repos/praekelt/nurseconnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/nurseconnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/nurseconnect/teams","hooks_url":"https://api.github.com/repos/praekelt/nurseconnect/hooks","issue_events_url":"https://api.github.com/repos/praekelt/nurseconnect/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/nurseconnect/events","assignees_url":"https://api.github.com/repos/praekelt/nurseconnect/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/nurseconnect/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/nurseconnect/tags","blobs_url":"https://api.github.com/repos/praekelt/nurseconnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/nurseconnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/nurseconnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/nurseconnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/nurseconnect/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/nurseconnect/languages","stargazers_url":"https://api.github.com/repos/praekelt/nurseconnect/stargazers","contributors_url":"https://api.github.com/repos/praekelt/nurseconnect/contributors","subscribers_url":"https://api.github.com/repos/praekelt/nurseconnect/subscribers","subscription_url":"https://api.github.com/repos/praekelt/nurseconnect/subscription","commits_url":"https://api.github.com/repos/praekelt/nurseconnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/nurseconnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/nurseconnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/nurseconnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/nurseconnect/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/nurseconnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/nurseconnect/merges","archive_url":"https://api.github.com/repos/praekelt/nurseconnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/nurseconnect/downloads","issues_url":"https://api.github.com/repos/praekelt/nurseconnect/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/nurseconnect/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/nurseconnect/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/nurseconnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/nurseconnect/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/nurseconnect/releases{/id}","deployments_url":"https://api.github.com/repos/praekelt/nurseconnect/deployments","created_at":"2016-06-20T10:00:06Z","updated_at":"2016-08-10T14:59:29Z","pushed_at":"2016-08-19T13:18:28Z","git_url":"git://github.com/praekelt/nurseconnect.git","ssh_url":"git@github.com:praekelt/nurseconnect.git","clone_url":"https://github.com/praekelt/nurseconnect.git","svn_url":"https://github.com/praekelt/nurseconnect","homepage":null,"size":2331,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/praekelt/nurseconnect/pulls/26"},"html":{"href":"https://github.com/praekelt/nurseconnect/pull/26"},"issue":{"href":"https://api.github.com/repos/praekelt/nurseconnect/issues/26"},"comments":{"href":"https://api.github.com/repos/praekelt/nurseconnect/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/praekelt/nurseconnect/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/praekelt/nurseconnect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/praekelt/nurseconnect/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/praekelt/nurseconnect/statuses/c8b76b6cec4dc1942b4eb37ad760aead199d1bba"}}}}
{"actor":{"display_login":"chrislombaard"}}