{"action":"created","comment":{"url":"https://api.github.com/repos/DMOJ/site/pulls/comments/275617464","pull_request_review_id":226969229,"id":275617464,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3NTYxNzQ2NA==","diff_hunk":"@@ -100,3 +101,37 @@ class LicenseAdmin(admin.ModelAdmin):\n     fields = ('key', 'link', 'name', 'display', 'icon', 'text')\n     list_display = ('name', 'key')\n     form = LicenseForm\n+\n+\n+class LogEntryAdmin(admin.ModelAdmin):\n+    readonly_fields = ('user', 'content_type', 'object_id', 'object_repr', 'action_flag', 'change_message')\n+    list_display = ('__str__', 'action_time', 'user', 'content_type', 'object_link')\n+    search_fields = ('object_repr', 'change_message')\n+    list_filter = ('user', 'content_type')\n+    actions = None\n+\n+    def has_add_permission(self, request):\n+        return False\n+\n+    def has_change_permission(self, request, obj=None):\n+        return request.user.is_superuser","path":"judge/admin/interface.py","position":26,"original_position":26,"commit_id":"17d1a9f2242f3f4c636d25eca7ec88b9a0d1ccdf","original_commit_id":"17d1a9f2242f3f4c636d25eca7ec88b9a0d1ccdf","user":{"login":"quantum5","id":461885,"node_id":"MDQ6VXNlcjQ2MTg4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/461885?v=4","gravatar_id":"","url":"https://api.github.com/users/quantum5","html_url":"https://github.com/quantum5","followers_url":"https://api.github.com/users/quantum5/followers","following_url":"https://api.github.com/users/quantum5/following{/other_user}","gists_url":"https://api.github.com/users/quantum5/gists{/gist_id}","starred_url":"https://api.github.com/users/quantum5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantum5/subscriptions","organizations_url":"https://api.github.com/users/quantum5/orgs","repos_url":"https://api.github.com/users/quantum5/repos","events_url":"https://api.github.com/users/quantum5/events{/privacy}","received_events_url":"https://api.github.com/users/quantum5/received_events","type":"User","site_admin":false},"body":"I don't know if superusers should be able to forge records...","created_at":"2019-04-16T03:24:43Z","updated_at":"2019-04-16T03:25:07Z","html_url":"https://github.com/DMOJ/site/pull/952#discussion_r275617464","pull_request_url":"https://api.github.com/repos/DMOJ/site/pulls/952","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/DMOJ/site/pulls/comments/275617464"},"html":{"href":"https://github.com/DMOJ/site/pull/952#discussion_r275617464"},"pull_request":{"href":"https://api.github.com/repos/DMOJ/site/pulls/952"}}},"pull_request":{"url":"https://api.github.com/repos/DMOJ/site/pulls/952","id":270706945,"node_id":"MDExOlB1bGxSZXF1ZXN0MjcwNzA2OTQ1","html_url":"https://github.com/DMOJ/site/pull/952","diff_url":"https://github.com/DMOJ/site/pull/952.diff","patch_url":"https://github.com/DMOJ/site/pull/952.patch","issue_url":"https://api.github.com/repos/DMOJ/site/issues/952","number":952,"state":"open","locked":false,"title":"Display change log in admin for superusers","user":{"login":"Ninjaclasher","id":29607503,"node_id":"MDQ6VXNlcjI5NjA3NTAz","avatar_url":"https://avatars3.githubusercontent.com/u/29607503?v=4","gravatar_id":"","url":"https://api.github.com/users/Ninjaclasher","html_url":"https://github.com/Ninjaclasher","followers_url":"https://api.github.com/users/Ninjaclasher/followers","following_url":"https://api.github.com/users/Ninjaclasher/following{/other_user}","gists_url":"https://api.github.com/users/Ninjaclasher/gists{/gist_id}","starred_url":"https://api.github.com/users/Ninjaclasher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ninjaclasher/subscriptions","organizations_url":"https://api.github.com/users/Ninjaclasher/orgs","repos_url":"https://api.github.com/users/Ninjaclasher/repos","events_url":"https://api.github.com/users/Ninjaclasher/events{/privacy}","received_events_url":"https://api.github.com/users/Ninjaclasher/received_events","type":"User","site_admin":false},"body":"Fixes #755.","created_at":"2019-04-15T23:36:50Z","updated_at":"2019-04-16T03:25:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2775cc38109e5ecf12188c1155100165eea6fb2f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DMOJ/site/pulls/952/commits","review_comments_url":"https://api.github.com/repos/DMOJ/site/pulls/952/comments","review_comment_url":"https://api.github.com/repos/DMOJ/site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DMOJ/site/issues/952/comments","statuses_url":"https://api.github.com/repos/DMOJ/site/statuses/17d1a9f2242f3f4c636d25eca7ec88b9a0d1ccdf","head":{"label":"Ninjaclasher:admin-log","ref":"admin-log","sha":"17d1a9f2242f3f4c636d25eca7ec88b9a0d1ccdf","user":{"login":"Ninjaclasher","id":29607503,"node_id":"MDQ6VXNlcjI5NjA3NTAz","avatar_url":"https://avatars3.githubusercontent.com/u/29607503?v=4","gravatar_id":"","url":"https://api.github.com/users/Ninjaclasher","html_url":"https://github.com/Ninjaclasher","followers_url":"https://api.github.com/users/Ninjaclasher/followers","following_url":"https://api.github.com/users/Ninjaclasher/following{/other_user}","gists_url":"https://api.github.com/users/Ninjaclasher/gists{/gist_id}","starred_url":"https://api.github.com/users/Ninjaclasher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ninjaclasher/subscriptions","organizations_url":"https://api.github.com/users/Ninjaclasher/orgs","repos_url":"https://api.github.com/users/Ninjaclasher/repos","events_url":"https://api.github.com/users/Ninjaclasher/events{/privacy}","received_events_url":"https://api.github.com/users/Ninjaclasher/received_events","type":"User","site_admin":false},"repo":{"id":161504081,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE1MDQwODE=","name":"site","full_name":"Ninjaclasher/site","private":false,"owner":{"login":"Ninjaclasher","id":29607503,"node_id":"MDQ6VXNlcjI5NjA3NTAz","avatar_url":"https://avatars3.githubusercontent.com/u/29607503?v=4","gravatar_id":"","url":"https://api.github.com/users/Ninjaclasher","html_url":"https://github.com/Ninjaclasher","followers_url":"https://api.github.com/users/Ninjaclasher/followers","following_url":"https://api.github.com/users/Ninjaclasher/following{/other_user}","gists_url":"https://api.github.com/users/Ninjaclasher/gists{/gist_id}","starred_url":"https://api.github.com/users/Ninjaclasher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ninjaclasher/subscriptions","organizations_url":"https://api.github.com/users/Ninjaclasher/orgs","repos_url":"https://api.github.com/users/Ninjaclasher/repos","events_url":"https://api.github.com/users/Ninjaclasher/events{/privacy}","received_events_url":"https://api.github.com/users/Ninjaclasher/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Ninjaclasher/site","description":"A modern, open-source online judge frontend.","fork":true,"url":"https://api.github.com/repos/Ninjaclasher/site","forks_url":"https://api.github.com/repos/Ninjaclasher/site/forks","keys_url":"https://api.github.com/repos/Ninjaclasher/site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ninjaclasher/site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ninjaclasher/site/teams","hooks_url":"https://api.github.com/repos/Ninjaclasher/site/hooks","issue_events_url":"https://api.github.com/repos/Ninjaclasher/site/issues/events{/number}","events_url":"https://api.github.com/repos/Ninjaclasher/site/events","assignees_url":"https://api.github.com/repos/Ninjaclasher/site/assignees{/user}","branches_url":"https://api.github.com/repos/Ninjaclasher/site/branches{/branch}","tags_url":"https://api.github.com/repos/Ninjaclasher/site/tags","blobs_url":"https://api.github.com/repos/Ninjaclasher/site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ninjaclasher/site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ninjaclasher/site/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ninjaclasher/site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ninjaclasher/site/statuses/{sha}","languages_url":"https://api.github.com/repos/Ninjaclasher/site/languages","stargazers_url":"https://api.github.com/repos/Ninjaclasher/site/stargazers","contributors_url":"https://api.github.com/repos/Ninjaclasher/site/contributors","subscribers_url":"https://api.github.com/repos/Ninjaclasher/site/subscribers","subscription_url":"https://api.github.com/repos/Ninjaclasher/site/subscription","commits_url":"https://api.github.com/repos/Ninjaclasher/site/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ninjaclasher/site/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ninjaclasher/site/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ninjaclasher/site/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ninjaclasher/site/contents/{+path}","compare_url":"https://api.github.com/repos/Ninjaclasher/site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ninjaclasher/site/merges","archive_url":"https://api.github.com/repos/Ninjaclasher/site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ninjaclasher/site/downloads","issues_url":"https://api.github.com/repos/Ninjaclasher/site/issues{/number}","pulls_url":"https://api.github.com/repos/Ninjaclasher/site/pulls{/number}","milestones_url":"https://api.github.com/repos/Ninjaclasher/site/milestones{/number}","notifications_url":"https://api.github.com/repos/Ninjaclasher/site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ninjaclasher/site/labels{/name}","releases_url":"https://api.github.com/repos/Ninjaclasher/site/releases{/id}","deployments_url":"https://api.github.com/repos/Ninjaclasher/site/deployments","created_at":"2018-12-12T15:01:28Z","updated_at":"2019-04-15T15:04:13Z","pushed_at":"2019-04-16T02:22:52Z","git_url":"git://github.com/Ninjaclasher/site.git","ssh_url":"git@github.com:Ninjaclasher/site.git","clone_url":"https://github.com/Ninjaclasher/site.git","svn_url":"https://github.com/Ninjaclasher/site","homepage":"https://dmoj.ca","size":8153,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DMOJ:master","ref":"master","sha":"57173c1c2a3ad52406471bbe202d27cdaba792ef","user":{"login":"DMOJ","id":6934864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5MzQ4NjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6934864?v=4","gravatar_id":"","url":"https://api.github.com/users/DMOJ","html_url":"https://github.com/DMOJ","followers_url":"https://api.github.com/users/DMOJ/followers","following_url":"https://api.github.com/users/DMOJ/following{/other_user}","gists_url":"https://api.github.com/users/DMOJ/gists{/gist_id}","starred_url":"https://api.github.com/users/DMOJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DMOJ/subscriptions","organizations_url":"https://api.github.com/users/DMOJ/orgs","repos_url":"https://api.github.com/users/DMOJ/repos","events_url":"https://api.github.com/users/DMOJ/events{/privacy}","received_events_url":"https://api.github.com/users/DMOJ/received_events","type":"Organization","site_admin":false},"repo":{"id":17685829,"node_id":"MDEwOlJlcG9zaXRvcnkxNzY4NTgyOQ==","name":"site","full_name":"DMOJ/site","private":false,"owner":{"login":"DMOJ","id":6934864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5MzQ4NjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6934864?v=4","gravatar_id":"","url":"https://api.github.com/users/DMOJ","html_url":"https://github.com/DMOJ","followers_url":"https://api.github.com/users/DMOJ/followers","following_url":"https://api.github.com/users/DMOJ/following{/other_user}","gists_url":"https://api.github.com/users/DMOJ/gists{/gist_id}","starred_url":"https://api.github.com/users/DMOJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DMOJ/subscriptions","organizations_url":"https://api.github.com/users/DMOJ/orgs","repos_url":"https://api.github.com/users/DMOJ/repos","events_url":"https://api.github.com/users/DMOJ/events{/privacy}","received_events_url":"https://api.github.com/users/DMOJ/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DMOJ/site","description":"A modern, open-source online judge frontend.","fork":false,"url":"https://api.github.com/repos/DMOJ/site","forks_url":"https://api.github.com/repos/DMOJ/site/forks","keys_url":"https://api.github.com/repos/DMOJ/site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DMOJ/site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DMOJ/site/teams","hooks_url":"https://api.github.com/repos/DMOJ/site/hooks","issue_events_url":"https://api.github.com/repos/DMOJ/site/issues/events{/number}","events_url":"https://api.github.com/repos/DMOJ/site/events","assignees_url":"https://api.github.com/repos/DMOJ/site/assignees{/user}","branches_url":"https://api.github.com/repos/DMOJ/site/branches{/branch}","tags_url":"https://api.github.com/repos/DMOJ/site/tags","blobs_url":"https://api.github.com/repos/DMOJ/site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DMOJ/site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DMOJ/site/git/refs{/sha}","trees_url":"https://api.github.com/repos/DMOJ/site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DMOJ/site/statuses/{sha}","languages_url":"https://api.github.com/repos/DMOJ/site/languages","stargazers_url":"https://api.github.com/repos/DMOJ/site/stargazers","contributors_url":"https://api.github.com/repos/DMOJ/site/contributors","subscribers_url":"https://api.github.com/repos/DMOJ/site/subscribers","subscription_url":"https://api.github.com/repos/DMOJ/site/subscription","commits_url":"https://api.github.com/repos/DMOJ/site/commits{/sha}","git_commits_url":"https://api.github.com/repos/DMOJ/site/git/commits{/sha}","comments_url":"https://api.github.com/repos/DMOJ/site/comments{/number}","issue_comment_url":"https://api.github.com/repos/DMOJ/site/issues/comments{/number}","contents_url":"https://api.github.com/repos/DMOJ/site/contents/{+path}","compare_url":"https://api.github.com/repos/DMOJ/site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DMOJ/site/merges","archive_url":"https://api.github.com/repos/DMOJ/site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DMOJ/site/downloads","issues_url":"https://api.github.com/repos/DMOJ/site/issues{/number}","pulls_url":"https://api.github.com/repos/DMOJ/site/pulls{/number}","milestones_url":"https://api.github.com/repos/DMOJ/site/milestones{/number}","notifications_url":"https://api.github.com/repos/DMOJ/site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DMOJ/site/labels{/name}","releases_url":"https://api.github.com/repos/DMOJ/site/releases{/id}","deployments_url":"https://api.github.com/repos/DMOJ/site/deployments","created_at":"2014-03-12T22:08:14Z","updated_at":"2019-04-16T02:06:07Z","pushed_at":"2019-04-16T03:20:14Z","git_url":"git://github.com/DMOJ/site.git","ssh_url":"git@github.com:DMOJ/site.git","clone_url":"https://github.com/DMOJ/site.git","svn_url":"https://github.com/DMOJ/site","homepage":"https://dmoj.ca","size":8304,"stargazers_count":124,"watchers_count":124,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":155,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":76,"open_issues":155,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DMOJ/site/pulls/952"},"html":{"href":"https://github.com/DMOJ/site/pull/952"},"issue":{"href":"https://api.github.com/repos/DMOJ/site/issues/952"},"comments":{"href":"https://api.github.com/repos/DMOJ/site/issues/952/comments"},"review_comments":{"href":"https://api.github.com/repos/DMOJ/site/pulls/952/comments"},"review_comment":{"href":"https://api.github.com/repos/DMOJ/site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DMOJ/site/pulls/952/commits"},"statuses":{"href":"https://api.github.com/repos/DMOJ/site/statuses/17d1a9f2242f3f4c636d25eca7ec88b9a0d1ccdf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"quantum5"}}