[Django] #24624: 'ManyToOneRel' object has no attribute 'opts' when using django.contrib.admindocs

106 views
Skip to first unread message

Django

unread,
Apr 10, 2015, 2:11:24 PM4/10/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-----------------------------------+----------------------------
Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Keywords: admindocs opts
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+----------------------------
Environment:


Request Method: GET
Request URL: http://localhost:8000/admin/doc/models/client.client/

Django Version: 1.8
Python Version: 2.7.9
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'client',
'debug_toolbar',
'django.contrib.admindocs']
Installed Middleware:
[u'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware']


Traceback:
File "/Users/scott/.virtualenvs/chi/lib/python2.7/site-
packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File "/Users/scott/.virtualenvs/chi/lib/python2.7/site-
packages/django/views/generic/base.py" in view
71. return self.dispatch(request, *args, **kwargs)
File "/Users/scott/.virtualenvs/chi/lib/python2.7/site-
packages/django/utils/decorators.py" in _wrapper
34. return bound_func(*args, **kwargs)
File "/Users/scott/.virtualenvs/chi/lib/python2.7/site-
packages/django/contrib/auth/decorators.py" in _wrapped_view
22. return view_func(request, *args, **kwargs)
File "/Users/scott/.virtualenvs/chi/lib/python2.7/site-
packages/django/utils/decorators.py" in bound_func
30. return func.__get__(self, type(self))(*args2,
**kwargs2)
File "/Users/scott/.virtualenvs/chi/lib/python2.7/site-
packages/django/contrib/admindocs/views.py" in dispatch
40. return super(BaseAdminDocsView, self).dispatch(request,
*args, **kwargs)
File "/Users/scott/.virtualenvs/chi/lib/python2.7/site-
packages/django/views/generic/base.py" in dispatch
89. return handler(request, *args, **kwargs)
File "/Users/scott/.virtualenvs/chi/lib/python2.7/site-
packages/django/views/generic/base.py" in get
158. context = self.get_context_data(**kwargs)
File "/Users/scott/.virtualenvs/chi/lib/python2.7/site-
packages/django/contrib/admindocs/views.py" in get_context_data
269. 'app_label': rel.opts.app_label,

Exception Type: AttributeError at /admin/doc/models/client.client/
Exception Value: 'ManyToOneRel' object has no attribute 'opts'

Additional Related urls:
https://code.djangoproject.com/ticket/24381

--
Ticket URL: <https://code.djangoproject.com/ticket/24624>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 10, 2015, 2:12:10 PM4/10/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-------------------------------+----------------------------
Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution:

Keywords: admindocs opts | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------+----------------------------
Changes (by malgorath):

* Attachment "models.py" added.

Django

unread,
Apr 10, 2015, 2:12:18 PM4/10/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-------------------------------+----------------------------
Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution:

Keywords: admindocs opts | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------+----------------------------
Changes (by malgorath):

* Attachment "admin.py" added.

Django

unread,
Apr 10, 2015, 2:12:36 PM4/10/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-------------------------------+----------------------------
Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution:

Keywords: admindocs opts | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------+----------------------------
Changes (by malgorath):

* Attachment "settings.py" added.

Django

unread,
Apr 10, 2015, 2:13:34 PM4/10/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-------------------------------+----------------------------
Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution:

Keywords: admindocs opts | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------+----------------------------
Changes (by malgorath):

* Attachment "settings.2.py" added.

This is my common settings.py that imports the other file for dev purposes

Django

unread,
Apr 10, 2015, 2:14:03 PM4/10/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-------------------------------+----------------------------
Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution:

Keywords: admindocs opts | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------+----------------------------
Changes (by malgorath):

* Attachment "urls.py" added.

Django

unread,
Apr 10, 2015, 2:14:39 PM4/10/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-----------------------------------+--------------------------------------

Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution:

Keywords: admindocs opts | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by malgorath):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/24624#comment:1>

Django

unread,
Apr 10, 2015, 2:15:59 PM4/10/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-----------------------------------+------------------------------------

Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution:
Keywords: admindocs opts | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by apollo13):

* stage: Unreviewed => Accepted


Old description:

> Environment:
>

New description:

{{{
Environment:

Most likely caused by the fix in:
https://code.djangoproject.com/ticket/24381

--

--
Ticket URL: <https://code.djangoproject.com/ticket/24624#comment:2>

Django

unread,
Apr 11, 2015, 5:11:39 AM4/11/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-----------------------------------+------------------------------------

Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution:
Keywords: admindocs opts | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by claudep):

* has_patch: 0 => 1


Comment:

https://github.com/django/django/pull/4481

--
Ticket URL: <https://code.djangoproject.com/ticket/24624#comment:3>

Django

unread,
Apr 11, 2015, 7:57:56 AM4/11/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-------------------------------------+-------------------------------------

Reporter: malgorath | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution:
Keywords: admindocs opts | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/24624#comment:4>

Django

unread,
Apr 11, 2015, 9:33:19 AM4/11/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-------------------------------------+-------------------------------------
Reporter: malgorath | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admindocs | Version: 1.8
Severity: Release blocker | Resolution: fixed

Keywords: admindocs opts | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"4e7ed8d0d3e29e21d46abe06ac244da3754c82cc" 4e7ed8d]:
{{{
#!CommitTicketReference repository=""
revision="4e7ed8d0d3e29e21d46abe06ac244da3754c82cc"
Fixed #24624 -- Replaced obsoleted rel.opts in admindocs view

Thanks Scott Sanders for the report, and Markus Holtermann and
Tim Graham for the reviews. Refs #24381.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24624#comment:5>

Django

unread,
Apr 11, 2015, 9:34:35 AM4/11/15
to django-...@googlegroups.com
#24624: 'ManyToOneRel' object has no attribute 'opts' when using
django.contrib.admindocs
-------------------------------------+-------------------------------------
Reporter: malgorath | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admindocs | Version: 1.8

Severity: Release blocker | Resolution: fixed
Keywords: admindocs opts | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"774d09a7dd62a5a7c90343e08ea38bcb065ecf94" 774d09a]:
{{{
#!CommitTicketReference repository=""
revision="774d09a7dd62a5a7c90343e08ea38bcb065ecf94"
[1.8.x] Fixed #24624 -- Replaced obsoleted rel.opts in admindocs view

Thanks Scott Sanders for the report, and Markus Holtermann and
Tim Graham for the reviews. Refs #24381.

Backport of 4e7ed8d0d from master.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24624#comment:6>

Reply all
Reply to author
Forward
0 new messages