{"action":"created","comment":{"url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/comments/69372933","id":69372933,"diff_hunk":"@@ -83,3 +93,30 @@ def modify_status(request, status, id):\n     messages.add_message(request, messages.SUCCESS, message)\n \n     return redirect('web_access:ta-web_access-list')\n+\n+\n+def getGuestRequests(request):\n+    \"\"\" Returns list of requests identified by MAC address \"\"\"\n+    mac = utils._getMAC(utils._getIPAddress(request))\n+    requests = WebRequest.objects.all().filter(trainee=None, mac_address=mac).order_by('status')\n+    print mac\n+    html = render(request, 'web_access/requests_panel.html', context={'guest_access_requests': requests})","path":"ap/web_access/views.py","position":75,"original_position":75,"commit_id":"762c8e6b8c7faf1d85d6b3b103bdb158c00dc2df","original_commit_id":"762c8e6b8c7faf1d85d6b3b103bdb158c00dc2df","user":{"login":"radicalray","id":1342417,"avatar_url":"https://avatars.githubusercontent.com/u/1342417?v=3","gravatar_id":"","url":"https://api.github.com/users/radicalray","html_url":"https://github.com/radicalray","followers_url":"https://api.github.com/users/radicalray/followers","following_url":"https://api.github.com/users/radicalray/following{/other_user}","gists_url":"https://api.github.com/users/radicalray/gists{/gist_id}","starred_url":"https://api.github.com/users/radicalray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radicalray/subscriptions","organizations_url":"https://api.github.com/users/radicalray/orgs","repos_url":"https://api.github.com/users/radicalray/repos","events_url":"https://api.github.com/users/radicalray/events{/privacy}","received_events_url":"https://api.github.com/users/radicalray/received_events","type":"User","site_admin":false},"body":"Ok, looks like you're rendering server side. Generally we don't want to do this because it increases our bandwidth traffic when only the data needs to be shuttled over. B/c this is not a common feature, you don't need to change it. For all future REST request, you should figure out how to do client-side template rendering. Here's a tutorial: https://django-jstemplate.readthedocs.io/en/latest/\r\n\r\nI prefer handlebars.js","created_at":"2016-07-02T05:28:21Z","updated_at":"2016-07-02T05:28:21Z","html_url":"https://github.com/attendanceproject/djattendance/pull/295#discussion_r69372933","pull_request_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/295","_links":{"self":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/comments/69372933"},"html":{"href":"https://github.com/attendanceproject/djattendance/pull/295#discussion_r69372933"},"pull_request":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/295"}}},"pull_request":{"url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/295","id":75710455,"html_url":"https://github.com/attendanceproject/djattendance/pull/295","diff_url":"https://github.com/attendanceproject/djattendance/pull/295.diff","patch_url":"https://github.com/attendanceproject/djattendance/pull/295.patch","issue_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/295","number":295,"state":"open","locked":false,"title":"Web request","user":{"login":"leonardlan","id":5194231,"avatar_url":"https://avatars.githubusercontent.com/u/5194231?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardlan","html_url":"https://github.com/leonardlan","followers_url":"https://api.github.com/users/leonardlan/followers","following_url":"https://api.github.com/users/leonardlan/following{/other_user}","gists_url":"https://api.github.com/users/leonardlan/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardlan/subscriptions","organizations_url":"https://api.github.com/users/leonardlan/orgs","repos_url":"https://api.github.com/users/leonardlan/repos","events_url":"https://api.github.com/users/leonardlan/events{/privacy}","received_events_url":"https://api.github.com/users/leonardlan/received_events","type":"User","site_admin":false},"body":"Allows guests without trainee accounts to create a web access request. Once approved, they may start using them. The requests go through the same pipeline as the trainee web access requests. @radicalray ","created_at":"2016-06-29T19:52:45Z","updated_at":"2016-07-02T05:28:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"926ba95c7fc3fd7dc0b753efaa949ab0b0600c3c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/295/commits","review_comments_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/295/comments","review_comment_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/comments{/number}","comments_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/295/comments","statuses_url":"https://api.github.com/repos/attendanceproject/djattendance/statuses/762c8e6b8c7faf1d85d6b3b103bdb158c00dc2df","head":{"label":"attendanceproject:web-request","ref":"web-request","sha":"762c8e6b8c7faf1d85d6b3b103bdb158c00dc2df","user":{"login":"attendanceproject","id":5070936,"avatar_url":"https://avatars.githubusercontent.com/u/5070936?v=3","gravatar_id":"","url":"https://api.github.com/users/attendanceproject","html_url":"https://github.com/attendanceproject","followers_url":"https://api.github.com/users/attendanceproject/followers","following_url":"https://api.github.com/users/attendanceproject/following{/other_user}","gists_url":"https://api.github.com/users/attendanceproject/gists{/gist_id}","starred_url":"https://api.github.com/users/attendanceproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attendanceproject/subscriptions","organizations_url":"https://api.github.com/users/attendanceproject/orgs","repos_url":"https://api.github.com/users/attendanceproject/repos","events_url":"https://api.github.com/users/attendanceproject/events{/privacy}","received_events_url":"https://api.github.com/users/attendanceproject/received_events","type":"Organization","site_admin":false},"repo":{"id":11232995,"name":"djattendance","full_name":"attendanceproject/djattendance","owner":{"login":"attendanceproject","id":5070936,"avatar_url":"https://avatars.githubusercontent.com/u/5070936?v=3","gravatar_id":"","url":"https://api.github.com/users/attendanceproject","html_url":"https://github.com/attendanceproject","followers_url":"https://api.github.com/users/attendanceproject/followers","following_url":"https://api.github.com/users/attendanceproject/following{/other_user}","gists_url":"https://api.github.com/users/attendanceproject/gists{/gist_id}","starred_url":"https://api.github.com/users/attendanceproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attendanceproject/subscriptions","organizations_url":"https://api.github.com/users/attendanceproject/orgs","repos_url":"https://api.github.com/users/attendanceproject/repos","events_url":"https://api.github.com/users/attendanceproject/events{/privacy}","received_events_url":"https://api.github.com/users/attendanceproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/attendanceproject/djattendance","description":"a rewrite of the original attendance project in Python","fork":false,"url":"https://api.github.com/repos/attendanceproject/djattendance","forks_url":"https://api.github.com/repos/attendanceproject/djattendance/forks","keys_url":"https://api.github.com/repos/attendanceproject/djattendance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/attendanceproject/djattendance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/attendanceproject/djattendance/teams","hooks_url":"https://api.github.com/repos/attendanceproject/djattendance/hooks","issue_events_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/events{/number}","events_url":"https://api.github.com/repos/attendanceproject/djattendance/events","assignees_url":"https://api.github.com/repos/attendanceproject/djattendance/assignees{/user}","branches_url":"https://api.github.com/repos/attendanceproject/djattendance/branches{/branch}","tags_url":"https://api.github.com/repos/attendanceproject/djattendance/tags","blobs_url":"https://api.github.com/repos/attendanceproject/djattendance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/attendanceproject/djattendance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/attendanceproject/djattendance/git/refs{/sha}","trees_url":"https://api.github.com/repos/attendanceproject/djattendance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/attendanceproject/djattendance/statuses/{sha}","languages_url":"https://api.github.com/repos/attendanceproject/djattendance/languages","stargazers_url":"https://api.github.com/repos/attendanceproject/djattendance/stargazers","contributors_url":"https://api.github.com/repos/attendanceproject/djattendance/contributors","subscribers_url":"https://api.github.com/repos/attendanceproject/djattendance/subscribers","subscription_url":"https://api.github.com/repos/attendanceproject/djattendance/subscription","commits_url":"https://api.github.com/repos/attendanceproject/djattendance/commits{/sha}","git_commits_url":"https://api.github.com/repos/attendanceproject/djattendance/git/commits{/sha}","comments_url":"https://api.github.com/repos/attendanceproject/djattendance/comments{/number}","issue_comment_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/comments{/number}","contents_url":"https://api.github.com/repos/attendanceproject/djattendance/contents/{+path}","compare_url":"https://api.github.com/repos/attendanceproject/djattendance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/attendanceproject/djattendance/merges","archive_url":"https://api.github.com/repos/attendanceproject/djattendance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/attendanceproject/djattendance/downloads","issues_url":"https://api.github.com/repos/attendanceproject/djattendance/issues{/number}","pulls_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls{/number}","milestones_url":"https://api.github.com/repos/attendanceproject/djattendance/milestones{/number}","notifications_url":"https://api.github.com/repos/attendanceproject/djattendance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/attendanceproject/djattendance/labels{/name}","releases_url":"https://api.github.com/repos/attendanceproject/djattendance/releases{/id}","deployments_url":"https://api.github.com/repos/attendanceproject/djattendance/deployments","created_at":"2013-07-07T12:16:10Z","updated_at":"2016-06-29T09:10:34Z","pushed_at":"2016-07-02T05:02:34Z","git_url":"git://github.com/attendanceproject/djattendance.git","ssh_url":"git@github.com:attendanceproject/djattendance.git","clone_url":"https://github.com/attendanceproject/djattendance.git","svn_url":"https://github.com/attendanceproject/djattendance","homepage":"","size":17592,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":134,"forks":12,"open_issues":134,"watchers":15,"default_branch":"dev"}},"base":{"label":"attendanceproject:dev","ref":"dev","sha":"3882c33232c8637b88a22bba1dc2dfa96a926e90","user":{"login":"attendanceproject","id":5070936,"avatar_url":"https://avatars.githubusercontent.com/u/5070936?v=3","gravatar_id":"","url":"https://api.github.com/users/attendanceproject","html_url":"https://github.com/attendanceproject","followers_url":"https://api.github.com/users/attendanceproject/followers","following_url":"https://api.github.com/users/attendanceproject/following{/other_user}","gists_url":"https://api.github.com/users/attendanceproject/gists{/gist_id}","starred_url":"https://api.github.com/users/attendanceproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attendanceproject/subscriptions","organizations_url":"https://api.github.com/users/attendanceproject/orgs","repos_url":"https://api.github.com/users/attendanceproject/repos","events_url":"https://api.github.com/users/attendanceproject/events{/privacy}","received_events_url":"https://api.github.com/users/attendanceproject/received_events","type":"Organization","site_admin":false},"repo":{"id":11232995,"name":"djattendance","full_name":"attendanceproject/djattendance","owner":{"login":"attendanceproject","id":5070936,"avatar_url":"https://avatars.githubusercontent.com/u/5070936?v=3","gravatar_id":"","url":"https://api.github.com/users/attendanceproject","html_url":"https://github.com/attendanceproject","followers_url":"https://api.github.com/users/attendanceproject/followers","following_url":"https://api.github.com/users/attendanceproject/following{/other_user}","gists_url":"https://api.github.com/users/attendanceproject/gists{/gist_id}","starred_url":"https://api.github.com/users/attendanceproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attendanceproject/subscriptions","organizations_url":"https://api.github.com/users/attendanceproject/orgs","repos_url":"https://api.github.com/users/attendanceproject/repos","events_url":"https://api.github.com/users/attendanceproject/events{/privacy}","received_events_url":"https://api.github.com/users/attendanceproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/attendanceproject/djattendance","description":"a rewrite of the original attendance project in Python","fork":false,"url":"https://api.github.com/repos/attendanceproject/djattendance","forks_url":"https://api.github.com/repos/attendanceproject/djattendance/forks","keys_url":"https://api.github.com/repos/attendanceproject/djattendance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/attendanceproject/djattendance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/attendanceproject/djattendance/teams","hooks_url":"https://api.github.com/repos/attendanceproject/djattendance/hooks","issue_events_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/events{/number}","events_url":"https://api.github.com/repos/attendanceproject/djattendance/events","assignees_url":"https://api.github.com/repos/attendanceproject/djattendance/assignees{/user}","branches_url":"https://api.github.com/repos/attendanceproject/djattendance/branches{/branch}","tags_url":"https://api.github.com/repos/attendanceproject/djattendance/tags","blobs_url":"https://api.github.com/repos/attendanceproject/djattendance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/attendanceproject/djattendance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/attendanceproject/djattendance/git/refs{/sha}","trees_url":"https://api.github.com/repos/attendanceproject/djattendance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/attendanceproject/djattendance/statuses/{sha}","languages_url":"https://api.github.com/repos/attendanceproject/djattendance/languages","stargazers_url":"https://api.github.com/repos/attendanceproject/djattendance/stargazers","contributors_url":"https://api.github.com/repos/attendanceproject/djattendance/contributors","subscribers_url":"https://api.github.com/repos/attendanceproject/djattendance/subscribers","subscription_url":"https://api.github.com/repos/attendanceproject/djattendance/subscription","commits_url":"https://api.github.com/repos/attendanceproject/djattendance/commits{/sha}","git_commits_url":"https://api.github.com/repos/attendanceproject/djattendance/git/commits{/sha}","comments_url":"https://api.github.com/repos/attendanceproject/djattendance/comments{/number}","issue_comment_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/comments{/number}","contents_url":"https://api.github.com/repos/attendanceproject/djattendance/contents/{+path}","compare_url":"https://api.github.com/repos/attendanceproject/djattendance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/attendanceproject/djattendance/merges","archive_url":"https://api.github.com/repos/attendanceproject/djattendance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/attendanceproject/djattendance/downloads","issues_url":"https://api.github.com/repos/attendanceproject/djattendance/issues{/number}","pulls_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls{/number}","milestones_url":"https://api.github.com/repos/attendanceproject/djattendance/milestones{/number}","notifications_url":"https://api.github.com/repos/attendanceproject/djattendance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/attendanceproject/djattendance/labels{/name}","releases_url":"https://api.github.com/repos/attendanceproject/djattendance/releases{/id}","deployments_url":"https://api.github.com/repos/attendanceproject/djattendance/deployments","created_at":"2013-07-07T12:16:10Z","updated_at":"2016-06-29T09:10:34Z","pushed_at":"2016-07-02T05:02:34Z","git_url":"git://github.com/attendanceproject/djattendance.git","ssh_url":"git@github.com:attendanceproject/djattendance.git","clone_url":"https://github.com/attendanceproject/djattendance.git","svn_url":"https://github.com/attendanceproject/djattendance","homepage":"","size":17592,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":134,"forks":12,"open_issues":134,"watchers":15,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/295"},"html":{"href":"https://github.com/attendanceproject/djattendance/pull/295"},"issue":{"href":"https://api.github.com/repos/attendanceproject/djattendance/issues/295"},"comments":{"href":"https://api.github.com/repos/attendanceproject/djattendance/issues/295/comments"},"review_comments":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/295/comments"},"review_comment":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/295/commits"},"statuses":{"href":"https://api.github.com/repos/attendanceproject/djattendance/statuses/762c8e6b8c7faf1d85d6b3b103bdb158c00dc2df"}}}}
{"actor":{"display_login":"radicalray"}}