{"action":"created","comment":{"url":"https://api.github.com/repos/fsr-itse/1327/pulls/comments/102083421","pull_request_review_id":22827452,"id":102083421,"diff_hunk":"@@ -0,0 +1,70 @@\n+from django.contrib import messages\n+from django.core.exceptions import PermissionDenied\n+from django.http import HttpResponse\n+from django.shortcuts import get_object_or_404, Http404, redirect, render\n+from django.utils import timezone\n+from django.utils.translation import ugettext_lazy as _\n+\n+from .forms import ShortlinkForm\n+from .models import Shortlink\n+\n+\n+def shortlinks_index(request):\n+\tif not request.user.is_superuser:","path":"_1327/shortlinks/views.py","position":13,"original_position":13,"commit_id":"459c286701a0f99d15f8a30fd77c2f338e1dfef9","original_commit_id":"459c286701a0f99d15f8a30fd77c2f338e1dfef9","user":{"login":"Bartzi","id":2399349,"avatar_url":"https://avatars.githubusercontent.com/u/2399349?v=3","gravatar_id":"","url":"https://api.github.com/users/Bartzi","html_url":"https://github.com/Bartzi","followers_url":"https://api.github.com/users/Bartzi/followers","following_url":"https://api.github.com/users/Bartzi/following{/other_user}","gists_url":"https://api.github.com/users/Bartzi/gists{/gist_id}","starred_url":"https://api.github.com/users/Bartzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bartzi/subscriptions","organizations_url":"https://api.github.com/users/Bartzi/orgs","repos_url":"https://api.github.com/users/Bartzi/repos","events_url":"https://api.github.com/users/Bartzi/events{/privacy}","received_events_url":"https://api.github.com/users/Bartzi/received_events","type":"User","site_admin":false},"body":"only superusers are allowed to create/edit shortlinks?\r\nIs this really the intention?","created_at":"2017-02-20T19:50:23Z","updated_at":"2017-02-20T19:53:57Z","html_url":"https://github.com/fsr-itse/1327/pull/532#discussion_r102083421","pull_request_url":"https://api.github.com/repos/fsr-itse/1327/pulls/532","_links":{"self":{"href":"https://api.github.com/repos/fsr-itse/1327/pulls/comments/102083421"},"html":{"href":"https://github.com/fsr-itse/1327/pull/532#discussion_r102083421"},"pull_request":{"href":"https://api.github.com/repos/fsr-itse/1327/pulls/532"}}},"pull_request":{"url":"https://api.github.com/repos/fsr-itse/1327/pulls/532","id":107061687,"html_url":"https://github.com/fsr-itse/1327/pull/532","diff_url":"https://github.com/fsr-itse/1327/pull/532.diff","patch_url":"https://github.com/fsr-itse/1327/pull/532.patch","issue_url":"https://api.github.com/repos/fsr-itse/1327/issues/532","number":532,"state":"open","locked":false,"title":"Introduce shortlinks","user":{"login":"janno42","id":1781719,"avatar_url":"https://avatars.githubusercontent.com/u/1781719?v=3","gravatar_id":"","url":"https://api.github.com/users/janno42","html_url":"https://github.com/janno42","followers_url":"https://api.github.com/users/janno42/followers","following_url":"https://api.github.com/users/janno42/following{/other_user}","gists_url":"https://api.github.com/users/janno42/gists{/gist_id}","starred_url":"https://api.github.com/users/janno42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janno42/subscriptions","organizations_url":"https://api.github.com/users/janno42/orgs","repos_url":"https://api.github.com/users/janno42/repos","events_url":"https://api.github.com/users/janno42/events{/privacy}","received_events_url":"https://api.github.com/users/janno42/received_events","type":"User","site_admin":false},"body":"fix #478","created_at":"2017-02-20T19:02:02Z","updated_at":"2017-02-20T19:53:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efdbd10eae1debafffac89126233619b7fb8e3ee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fsr-itse/1327/pulls/532/commits","review_comments_url":"https://api.github.com/repos/fsr-itse/1327/pulls/532/comments","review_comment_url":"https://api.github.com/repos/fsr-itse/1327/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fsr-itse/1327/issues/532/comments","statuses_url":"https://api.github.com/repos/fsr-itse/1327/statuses/459c286701a0f99d15f8a30fd77c2f338e1dfef9","head":{"label":"janno42:shortlink","ref":"shortlink","sha":"459c286701a0f99d15f8a30fd77c2f338e1dfef9","user":{"login":"janno42","id":1781719,"avatar_url":"https://avatars.githubusercontent.com/u/1781719?v=3","gravatar_id":"","url":"https://api.github.com/users/janno42","html_url":"https://github.com/janno42","followers_url":"https://api.github.com/users/janno42/followers","following_url":"https://api.github.com/users/janno42/following{/other_user}","gists_url":"https://api.github.com/users/janno42/gists{/gist_id}","starred_url":"https://api.github.com/users/janno42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janno42/subscriptions","organizations_url":"https://api.github.com/users/janno42/orgs","repos_url":"https://api.github.com/users/janno42/repos","events_url":"https://api.github.com/users/janno42/events{/privacy}","received_events_url":"https://api.github.com/users/janno42/received_events","type":"User","site_admin":false},"repo":{"id":22138768,"name":"1327","full_name":"janno42/1327","owner":{"login":"janno42","id":1781719,"avatar_url":"https://avatars.githubusercontent.com/u/1781719?v=3","gravatar_id":"","url":"https://api.github.com/users/janno42","html_url":"https://github.com/janno42","followers_url":"https://api.github.com/users/janno42/followers","following_url":"https://api.github.com/users/janno42/following{/other_user}","gists_url":"https://api.github.com/users/janno42/gists{/gist_id}","starred_url":"https://api.github.com/users/janno42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janno42/subscriptions","organizations_url":"https://api.github.com/users/janno42/orgs","repos_url":"https://api.github.com/users/janno42/repos","events_url":"https://api.github.com/users/janno42/events{/privacy}","received_events_url":"https://api.github.com/users/janno42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/janno42/1327","description":"A student representatives website","fork":true,"url":"https://api.github.com/repos/janno42/1327","forks_url":"https://api.github.com/repos/janno42/1327/forks","keys_url":"https://api.github.com/repos/janno42/1327/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janno42/1327/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janno42/1327/teams","hooks_url":"https://api.github.com/repos/janno42/1327/hooks","issue_events_url":"https://api.github.com/repos/janno42/1327/issues/events{/number}","events_url":"https://api.github.com/repos/janno42/1327/events","assignees_url":"https://api.github.com/repos/janno42/1327/assignees{/user}","branches_url":"https://api.github.com/repos/janno42/1327/branches{/branch}","tags_url":"https://api.github.com/repos/janno42/1327/tags","blobs_url":"https://api.github.com/repos/janno42/1327/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janno42/1327/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janno42/1327/git/refs{/sha}","trees_url":"https://api.github.com/repos/janno42/1327/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janno42/1327/statuses/{sha}","languages_url":"https://api.github.com/repos/janno42/1327/languages","stargazers_url":"https://api.github.com/repos/janno42/1327/stargazers","contributors_url":"https://api.github.com/repos/janno42/1327/contributors","subscribers_url":"https://api.github.com/repos/janno42/1327/subscribers","subscription_url":"https://api.github.com/repos/janno42/1327/subscription","commits_url":"https://api.github.com/repos/janno42/1327/commits{/sha}","git_commits_url":"https://api.github.com/repos/janno42/1327/git/commits{/sha}","comments_url":"https://api.github.com/repos/janno42/1327/comments{/number}","issue_comment_url":"https://api.github.com/repos/janno42/1327/issues/comments{/number}","contents_url":"https://api.github.com/repos/janno42/1327/contents/{+path}","compare_url":"https://api.github.com/repos/janno42/1327/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janno42/1327/merges","archive_url":"https://api.github.com/repos/janno42/1327/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janno42/1327/downloads","issues_url":"https://api.github.com/repos/janno42/1327/issues{/number}","pulls_url":"https://api.github.com/repos/janno42/1327/pulls{/number}","milestones_url":"https://api.github.com/repos/janno42/1327/milestones{/number}","notifications_url":"https://api.github.com/repos/janno42/1327/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janno42/1327/labels{/name}","releases_url":"https://api.github.com/repos/janno42/1327/releases{/id}","deployments_url":"https://api.github.com/repos/janno42/1327/deployments","created_at":"2014-07-23T08:42:39Z","updated_at":"2014-09-29T18:32:04Z","pushed_at":"2017-02-20T19:01:02Z","git_url":"git://github.com/janno42/1327.git","ssh_url":"git@github.com:janno42/1327.git","clone_url":"https://github.com/janno42/1327.git","svn_url":"https://github.com/janno42/1327","homepage":null,"size":1142,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fsr-itse:master","ref":"master","sha":"0b1befefe11e5c265834e14ca77ae3b125edbfba","user":{"login":"fsr-itse","id":1298457,"avatar_url":"https://avatars.githubusercontent.com/u/1298457?v=3","gravatar_id":"","url":"https://api.github.com/users/fsr-itse","html_url":"https://github.com/fsr-itse","followers_url":"https://api.github.com/users/fsr-itse/followers","following_url":"https://api.github.com/users/fsr-itse/following{/other_user}","gists_url":"https://api.github.com/users/fsr-itse/gists{/gist_id}","starred_url":"https://api.github.com/users/fsr-itse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsr-itse/subscriptions","organizations_url":"https://api.github.com/users/fsr-itse/orgs","repos_url":"https://api.github.com/users/fsr-itse/repos","events_url":"https://api.github.com/users/fsr-itse/events{/privacy}","received_events_url":"https://api.github.com/users/fsr-itse/received_events","type":"Organization","site_admin":false},"repo":{"id":22120153,"name":"1327","full_name":"fsr-itse/1327","owner":{"login":"fsr-itse","id":1298457,"avatar_url":"https://avatars.githubusercontent.com/u/1298457?v=3","gravatar_id":"","url":"https://api.github.com/users/fsr-itse","html_url":"https://github.com/fsr-itse","followers_url":"https://api.github.com/users/fsr-itse/followers","following_url":"https://api.github.com/users/fsr-itse/following{/other_user}","gists_url":"https://api.github.com/users/fsr-itse/gists{/gist_id}","starred_url":"https://api.github.com/users/fsr-itse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsr-itse/subscriptions","organizations_url":"https://api.github.com/users/fsr-itse/orgs","repos_url":"https://api.github.com/users/fsr-itse/repos","events_url":"https://api.github.com/users/fsr-itse/events{/privacy}","received_events_url":"https://api.github.com/users/fsr-itse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsr-itse/1327","description":"CMS for a student representatives website","fork":false,"url":"https://api.github.com/repos/fsr-itse/1327","forks_url":"https://api.github.com/repos/fsr-itse/1327/forks","keys_url":"https://api.github.com/repos/fsr-itse/1327/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsr-itse/1327/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsr-itse/1327/teams","hooks_url":"https://api.github.com/repos/fsr-itse/1327/hooks","issue_events_url":"https://api.github.com/repos/fsr-itse/1327/issues/events{/number}","events_url":"https://api.github.com/repos/fsr-itse/1327/events","assignees_url":"https://api.github.com/repos/fsr-itse/1327/assignees{/user}","branches_url":"https://api.github.com/repos/fsr-itse/1327/branches{/branch}","tags_url":"https://api.github.com/repos/fsr-itse/1327/tags","blobs_url":"https://api.github.com/repos/fsr-itse/1327/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsr-itse/1327/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsr-itse/1327/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsr-itse/1327/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsr-itse/1327/statuses/{sha}","languages_url":"https://api.github.com/repos/fsr-itse/1327/languages","stargazers_url":"https://api.github.com/repos/fsr-itse/1327/stargazers","contributors_url":"https://api.github.com/repos/fsr-itse/1327/contributors","subscribers_url":"https://api.github.com/repos/fsr-itse/1327/subscribers","subscription_url":"https://api.github.com/repos/fsr-itse/1327/subscription","commits_url":"https://api.github.com/repos/fsr-itse/1327/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsr-itse/1327/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsr-itse/1327/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsr-itse/1327/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsr-itse/1327/contents/{+path}","compare_url":"https://api.github.com/repos/fsr-itse/1327/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsr-itse/1327/merges","archive_url":"https://api.github.com/repos/fsr-itse/1327/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsr-itse/1327/downloads","issues_url":"https://api.github.com/repos/fsr-itse/1327/issues{/number}","pulls_url":"https://api.github.com/repos/fsr-itse/1327/pulls{/number}","milestones_url":"https://api.github.com/repos/fsr-itse/1327/milestones{/number}","notifications_url":"https://api.github.com/repos/fsr-itse/1327/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsr-itse/1327/labels{/name}","releases_url":"https://api.github.com/repos/fsr-itse/1327/releases{/id}","deployments_url":"https://api.github.com/repos/fsr-itse/1327/deployments","created_at":"2014-07-22T20:48:36Z","updated_at":"2016-11-24T21:11:13Z","pushed_at":"2017-02-20T19:02:02Z","git_url":"git://github.com/fsr-itse/1327.git","ssh_url":"git@github.com:fsr-itse/1327.git","clone_url":"https://github.com/fsr-itse/1327.git","svn_url":"https://github.com/fsr-itse/1327","homepage":"","size":1127,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":68,"forks":12,"open_issues":68,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fsr-itse/1327/pulls/532"},"html":{"href":"https://github.com/fsr-itse/1327/pull/532"},"issue":{"href":"https://api.github.com/repos/fsr-itse/1327/issues/532"},"comments":{"href":"https://api.github.com/repos/fsr-itse/1327/issues/532/comments"},"review_comments":{"href":"https://api.github.com/repos/fsr-itse/1327/pulls/532/comments"},"review_comment":{"href":"https://api.github.com/repos/fsr-itse/1327/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fsr-itse/1327/pulls/532/commits"},"statuses":{"href":"https://api.github.com/repos/fsr-itse/1327/statuses/459c286701a0f99d15f8a30fd77c2f338e1dfef9"}}}}
{"actor":{"display_login":"Bartzi"}}