{"action":"created","issue":{"url":"https://api.github.com/repos/ctxis/django-admin-view-permission/issues/10","repository_url":"https://api.github.com/repos/ctxis/django-admin-view-permission","labels_url":"https://api.github.com/repos/ctxis/django-admin-view-permission/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ctxis/django-admin-view-permission/issues/10/comments","events_url":"https://api.github.com/repos/ctxis/django-admin-view-permission/issues/10/events","html_url":"https://github.com/ctxis/django-admin-view-permission/pull/10","id":204044237,"number":10,"title":"Respect list argument in AdminViewPermissionAdminSite","user":{"login":"nkonin","id":11088651,"avatar_url":"https://avatars.githubusercontent.com/u/11088651?v=3","gravatar_id":"","url":"https://api.github.com/users/nkonin","html_url":"https://github.com/nkonin","followers_url":"https://api.github.com/users/nkonin/followers","following_url":"https://api.github.com/users/nkonin/following{/other_user}","gists_url":"https://api.github.com/users/nkonin/gists{/gist_id}","starred_url":"https://api.github.com/users/nkonin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkonin/subscriptions","organizations_url":"https://api.github.com/users/nkonin/orgs","repos_url":"https://api.github.com/users/nkonin/repos","events_url":"https://api.github.com/users/nkonin/events{/privacy}","received_events_url":"https://api.github.com/users/nkonin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-30T15:38:27Z","updated_at":"2017-01-30T15:47:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ctxis/django-admin-view-permission/pulls/10","html_url":"https://github.com/ctxis/django-admin-view-permission/pull/10","diff_url":"https://github.com/ctxis/django-admin-view-permission/pull/10.diff","patch_url":"https://github.com/ctxis/django-admin-view-permission/pull/10.patch"},"body":"I use [django constance](https://github.com/jazzband/django-constance) in my project and I found issue with django admin view permission.\r\n\r\nThere is piece of code in this project, for registering object in Django Admin, but this object doesn't derived from django.db.models.ModelBase, so it's wrapped in list for compatibility. [One line of code](https://github.com/jazzband/django-constance/blob/master/constance/admin.py#L279)\r\n\r\nIt works fine with the Django admin, but causes an error in the Django admin view permission.\r\nSo I have corrected this bug.\r\n\r\nWorth noting that there may be other applications that rely on the behavior of the Django admin, so this fix may be useful for other people."},"comment":{"url":"https://api.github.com/repos/ctxis/django-admin-view-permission/issues/comments/276098148","html_url":"https://github.com/ctxis/django-admin-view-permission/pull/10#issuecomment-276098148","issue_url":"https://api.github.com/repos/ctxis/django-admin-view-permission/issues/10","id":276098148,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2017-01-30T15:47:42Z","updated_at":"2017-01-30T15:47:42Z","body":"\n[![Coverage Status](https://coveralls.io/builds/9906309/badge)](https://coveralls.io/builds/9906309)\n\nCoverage remained the same at 94.03% when pulling **8ce365d318e2c462ca08cd5029d4507efdbfe0af on nkonin:respect_list_registering** into **4e887032c55faa9670f1bbf442ee45d9f13b5b21 on ctxis:master**.\n"}}
{"actor":{"display_login":"coveralls"}}