{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/pulls/3","id":84517304,"html_url":"https://github.com/rmotr-group-projects/wdd-w2-custom-admin/pull/3","diff_url":"https://github.com/rmotr-group-projects/wdd-w2-custom-admin/pull/3.diff","patch_url":"https://github.com/rmotr-group-projects/wdd-w2-custom-admin/pull/3.patch","issue_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/issues/3","number":3,"state":"open","locked":false,"title":"Solution for Custom Admin Project","user":{"login":"phillipdwright","id":7881277,"avatar_url":"https://avatars.githubusercontent.com/u/7881277?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipdwright","html_url":"https://github.com/phillipdwright","followers_url":"https://api.github.com/users/phillipdwright/followers","following_url":"https://api.github.com/users/phillipdwright/following{/other_user}","gists_url":"https://api.github.com/users/phillipdwright/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipdwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipdwright/subscriptions","organizations_url":"https://api.github.com/users/phillipdwright/orgs","repos_url":"https://api.github.com/users/phillipdwright/repos","events_url":"https://api.github.com/users/phillipdwright/events{/privacy}","received_events_url":"https://api.github.com/users/phillipdwright/received_events","type":"User","site_admin":false},"body":"\r\nDONE:\r\n-----\r\n1.  Set up venv, env variables, etc; run migrations\r\n2.  Set up superuser\r\n3.  Add reset_scoring action to entries.admin.EntryAdmin\r\n4.  Add change_blog action to entries.admin.EntryAdmin\r\n    1. Copy contents of ~/.virtualenvs/py3-env/lib/python3.4/site-packages/django/contrib/admin/static/admin/css/ to blog/entries/static/admin/css/\r\n    2.     Copy base.html and base_site.html from  ~/.virtualenvs/py3-env/lib/python3.4/site-packages/django/contrib/admin/templates/admin/ to blog/entries/templates/admin/\r\n    3.    Make entries/change_blog.html in entries/templates/admin\r\n5.  Add a \"Log in with Github\" link to ~/.virtualenvs/py3-env/lib/python3.4/site-packages/django/contrib/admin/templates/admin/login.html\r\n6.  Set up easy_select2\r\n    1.      Do pip install django-easy-select2, add django-easy-select2 to requirements/dev.txt, and add easy_select2 to settings.INSTALLED_APPS\r\n    2.     Add EntryForm to entries.admin and add form = EntryForm to entries.admin.EntryAdmin\r\n7.  Add custom admin view for blog statistics\r\n    1.      Define entries.admin.BlogAdmin.get_urls to add statistics url to url conf\r\n    2.     Define statistics view in entries.admin.BlogAdmin\r\n    3.    Make entries/statistics.html in entries/templates/admin\r\n8.  Implement django-suit theming\r\n    1.      Do pip install django-suit, add django-easy-select2 to requirements/dev.txt, and add suit to settings.INSTALLED_APPS _before_ django.contrib.admin\r\n    2.     Add django.core.context_processors.request to OPTIONS['context_processors'] in settings.TEMPLATES\r\n\r\nWe didn't realize at first that the second page for the `change_blog` action could be implemented within the action method in `BlogAdmin`, so we spent a while trying to set up a url routing and separate view for that page.  Once we figured out how to implement all that logic within `change_blog`, it was pretty straightforward.\r\nThe admin templates look pretty involved, but it wasn't too difficult to extend basic things on them.","created_at":"2016-09-08T17:13:06Z","updated_at":"2016-09-08T17:13:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41a1a9447ee69c8a1cb0f2efe857ab710b532988","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/pulls/3/commits","review_comments_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/pulls/3/comments","review_comment_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/issues/3/comments","statuses_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/statuses/5a8ad0be9dccbeb33b5f2d6537211daae98d5369","head":{"label":"phillipdwright:master","ref":"master","sha":"5a8ad0be9dccbeb33b5f2d6537211daae98d5369","user":{"login":"phillipdwright","id":7881277,"avatar_url":"https://avatars.githubusercontent.com/u/7881277?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipdwright","html_url":"https://github.com/phillipdwright","followers_url":"https://api.github.com/users/phillipdwright/followers","following_url":"https://api.github.com/users/phillipdwright/following{/other_user}","gists_url":"https://api.github.com/users/phillipdwright/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipdwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipdwright/subscriptions","organizations_url":"https://api.github.com/users/phillipdwright/orgs","repos_url":"https://api.github.com/users/phillipdwright/repos","events_url":"https://api.github.com/users/phillipdwright/events{/privacy}","received_events_url":"https://api.github.com/users/phillipdwright/received_events","type":"User","site_admin":false},"repo":{"id":67554241,"name":"wdd-w2-custom-admin","full_name":"phillipdwright/wdd-w2-custom-admin","owner":{"login":"phillipdwright","id":7881277,"avatar_url":"https://avatars.githubusercontent.com/u/7881277?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipdwright","html_url":"https://github.com/phillipdwright","followers_url":"https://api.github.com/users/phillipdwright/followers","following_url":"https://api.github.com/users/phillipdwright/following{/other_user}","gists_url":"https://api.github.com/users/phillipdwright/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipdwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipdwright/subscriptions","organizations_url":"https://api.github.com/users/phillipdwright/orgs","repos_url":"https://api.github.com/users/phillipdwright/repos","events_url":"https://api.github.com/users/phillipdwright/events{/privacy}","received_events_url":"https://api.github.com/users/phillipdwright/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phillipdwright/wdd-w2-custom-admin","description":null,"fork":true,"url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin","forks_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/forks","keys_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/teams","hooks_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/hooks","issue_events_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/issues/events{/number}","events_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/events","assignees_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/assignees{/user}","branches_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/branches{/branch}","tags_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/tags","blobs_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/languages","stargazers_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/stargazers","contributors_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/contributors","subscribers_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/subscribers","subscription_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/subscription","commits_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/contents/{+path}","compare_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/merges","archive_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/downloads","issues_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/issues{/number}","pulls_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/labels{/name}","releases_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/releases{/id}","deployments_url":"https://api.github.com/repos/phillipdwright/wdd-w2-custom-admin/deployments","created_at":"2016-09-06T23:26:19Z","updated_at":"2016-09-08T16:10:21Z","pushed_at":"2016-09-08T16:52:24Z","git_url":"git://github.com/phillipdwright/wdd-w2-custom-admin.git","ssh_url":"git@github.com:phillipdwright/wdd-w2-custom-admin.git","clone_url":"https://github.com/phillipdwright/wdd-w2-custom-admin.git","svn_url":"https://github.com/phillipdwright/wdd-w2-custom-admin","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"rmotr-group-projects:master","ref":"master","sha":"ed445f251cd291b9698aebfe466785daf40c026e","user":{"login":"rmotr-group-projects","id":18366789,"avatar_url":"https://avatars.githubusercontent.com/u/18366789?v=3","gravatar_id":"","url":"https://api.github.com/users/rmotr-group-projects","html_url":"https://github.com/rmotr-group-projects","followers_url":"https://api.github.com/users/rmotr-group-projects/followers","following_url":"https://api.github.com/users/rmotr-group-projects/following{/other_user}","gists_url":"https://api.github.com/users/rmotr-group-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/rmotr-group-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmotr-group-projects/subscriptions","organizations_url":"https://api.github.com/users/rmotr-group-projects/orgs","repos_url":"https://api.github.com/users/rmotr-group-projects/repos","events_url":"https://api.github.com/users/rmotr-group-projects/events{/privacy}","received_events_url":"https://api.github.com/users/rmotr-group-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":67443240,"name":"wdd-w2-custom-admin","full_name":"rmotr-group-projects/wdd-w2-custom-admin","owner":{"login":"rmotr-group-projects","id":18366789,"avatar_url":"https://avatars.githubusercontent.com/u/18366789?v=3","gravatar_id":"","url":"https://api.github.com/users/rmotr-group-projects","html_url":"https://github.com/rmotr-group-projects","followers_url":"https://api.github.com/users/rmotr-group-projects/followers","following_url":"https://api.github.com/users/rmotr-group-projects/following{/other_user}","gists_url":"https://api.github.com/users/rmotr-group-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/rmotr-group-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmotr-group-projects/subscriptions","organizations_url":"https://api.github.com/users/rmotr-group-projects/orgs","repos_url":"https://api.github.com/users/rmotr-group-projects/repos","events_url":"https://api.github.com/users/rmotr-group-projects/events{/privacy}","received_events_url":"https://api.github.com/users/rmotr-group-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rmotr-group-projects/wdd-w2-custom-admin","description":null,"fork":false,"url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin","forks_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/forks","keys_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/teams","hooks_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/hooks","issue_events_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/issues/events{/number}","events_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/events","assignees_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/assignees{/user}","branches_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/branches{/branch}","tags_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/tags","blobs_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/languages","stargazers_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/stargazers","contributors_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/contributors","subscribers_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/subscribers","subscription_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/subscription","commits_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/contents/{+path}","compare_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/merges","archive_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/downloads","issues_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/issues{/number}","pulls_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/labels{/name}","releases_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/releases{/id}","deployments_url":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/deployments","created_at":"2016-09-05T18:42:01Z","updated_at":"2016-09-06T22:03:19Z","pushed_at":"2016-09-08T17:13:06Z","git_url":"git://github.com/rmotr-group-projects/wdd-w2-custom-admin.git","ssh_url":"git@github.com:rmotr-group-projects/wdd-w2-custom-admin.git","clone_url":"https://github.com/rmotr-group-projects/wdd-w2-custom-admin.git","svn_url":"https://github.com/rmotr-group-projects/wdd-w2-custom-admin","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/pulls/3"},"html":{"href":"https://github.com/rmotr-group-projects/wdd-w2-custom-admin/pull/3"},"issue":{"href":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/issues/3"},"comments":{"href":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/rmotr-group-projects/wdd-w2-custom-admin/statuses/5a8ad0be9dccbeb33b5f2d6537211daae98d5369"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":3000,"deletions":4,"changed_files":22}}
{"actor":{"display_login":"phillipdwright"}}