{"action":"created","issue":{"url":"https://api.github.com/repos/dokterbob/django-newsletter/issues/133","labels_url":"https://api.github.com/repos/dokterbob/django-newsletter/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/dokterbob/django-newsletter/issues/133/comments","events_url":"https://api.github.com/repos/dokterbob/django-newsletter/issues/133/events","html_url":"https://github.com/dokterbob/django-newsletter/issues/133","id":88130370,"number":133,"title":"'SubmissionAdmin' object has no attribute 'queryset'","user":{"login":"fpghost","id":2691631,"avatar_url":"https://avatars.githubusercontent.com/u/2691631?v=3","gravatar_id":"","url":"https://api.github.com/users/fpghost","html_url":"https://github.com/fpghost","followers_url":"https://api.github.com/users/fpghost/followers","following_url":"https://api.github.com/users/fpghost/following{/other_user}","gists_url":"https://api.github.com/users/fpghost/gists{/gist_id}","starred_url":"https://api.github.com/users/fpghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpghost/subscriptions","organizations_url":"https://api.github.com/users/fpghost/orgs","repos_url":"https://api.github.com/users/fpghost/repos","events_url":"https://api.github.com/users/fpghost/events{/privacy}","received_events_url":"https://api.github.com/users/fpghost/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-14T06:15:31Z","updated_at":"2015-06-19T12:42:33Z","closed_at":null,"body":"I'm testing the commit `git://github.com/dokterbob/django-newsletter.git@8f58a8b38e27227972f8b9f9d61627be40f677bd` as I need to use with Django1.8.\r\n\r\nWhen adding a new submission in the admin, then clicking `Submit` button for that submission, I get the following\r\n\r\n    Traceback:\r\n    File \"/srv/transmezz/venv/lib/python2.7/site-packages/django/core/handlers/base.py\" in get_response\r\n    132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n    File \"/srv/transmezz/venv/lib/python2.7/site-packages/newsletter/admin_utils.py\" in wrapper\r\n    37.             return self.admin_site.admin_view(view)(*args, **kwargs)\r\n    File \"/srv/transmezz/venv/lib/python2.7/site-packages/django/utils/decorators.py\" in _wrapped_view\r\n    110.                     response = view_func(request, *args, **kwargs)\r\n    File \"/srv/transmezz/venv/lib/python2.7/site-packages/django/views/decorators/cache.py\" in _wrapped_view_func\r\n    57.         response = view_func(request, *args, **kwargs)\r\n    File \"/srv/transmezz/venv/lib/python2.7/site-packages/django/contrib/admin/sites.py\" in inner\r\n    233.             return view(request, *args, **kwargs)\r\n    File \"/srv/transmezz/venv/lib/python2.7/site-packages/newsletter/admin.py\" in submit\r\n    144.         submission = self._getobj(request, object_id)\r\n    File \"/srv/transmezz/venv/lib/python2.7/site-packages/newsletter/admin_utils.py\" in _getobj\r\n    15.                 obj = self.queryset(request).get(pk=unquote(object_id))\r\n\r\n    Exception Type: AttributeError at /en/admin/newsletter/submission/1/submit/\r\n    Exception Value: 'SubmissionAdmin' object has no attribute 'queryset'\r\n\r\nObviously it's related to the `submit` view of the `SubmissionAdmin` model in `admin.py`. There is the line `submission = self._getobj(request, object_id)` in this view, which uses `_getobj` of the `ExtendibleModelAdminMixin` mixin of `admin_utils.py`, which is the thing that calls `queryset` method on the `SubmissionAdmin` model: \r\n\r\n    obj = self.queryset(request).get(pk=unquote(object_id))\r\n\r\nCould anyone shed light on the matter? It appears in previous versions of django `admin.ModelAdmin` did have the queryset method, but not in 1.8?"},"comment":{"url":"https://api.github.com/repos/dokterbob/django-newsletter/issues/comments/113504432","html_url":"https://github.com/dokterbob/django-newsletter/issues/133#issuecomment-113504432","issue_url":"https://api.github.com/repos/dokterbob/django-newsletter/issues/133","id":113504432,"user":{"login":"pcraston","id":895133,"avatar_url":"https://avatars.githubusercontent.com/u/895133?v=3","gravatar_id":"","url":"https://api.github.com/users/pcraston","html_url":"https://github.com/pcraston","followers_url":"https://api.github.com/users/pcraston/followers","following_url":"https://api.github.com/users/pcraston/following{/other_user}","gists_url":"https://api.github.com/users/pcraston/gists{/gist_id}","starred_url":"https://api.github.com/users/pcraston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcraston/subscriptions","organizations_url":"https://api.github.com/users/pcraston/orgs","repos_url":"https://api.github.com/users/pcraston/repos","events_url":"https://api.github.com/users/pcraston/events{/privacy}","received_events_url":"https://api.github.com/users/pcraston/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T12:42:33Z","updated_at":"2015-06-19T12:42:33Z","body":"Cool thanks. Just on holiday, will check it out when I get back.\n\nOn Sunday, 14 June 2015, Lee H. <notifications@github.com> wrote:\n\n> Sent a pull request.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/dokterbob/django-newsletter/issues/133#issuecomment-111822560>\n> .\n>\n"}}