티스토리 수익 글 보기
Django
The web framework for perfectionists with deadlines.
Issues
#24624 closed Bug (fixed)
'ManyToOneRel' object has no attribute 'opts' when using django.contrib.admindocs
| Reported by: | Scott Sanders | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admindocs | Version: | 1.8 |
| Severity: | Release blocker | Keywords: | admindocs opts |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by Florian Apolloner)
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'
Most likely caused by the fix in: https://code.djangoproject.com/ticket/24381
Attachments (5)
- models.py (1.8 KB ) – added by Scott Sanders 11 years ago.
- admin.py (135 bytes ) – added by Scott Sanders 11 years ago.
- settings.py (1.2 KB ) – added by Scott Sanders 11 years ago.
- settings.2.py (1.1 KB ) – added by Scott Sanders 11 years ago.
- This is my common settings.py that imports the other file for dev purposes
- urls.py (446 bytes ) – added by Scott Sanders 11 years ago.
Download all attachments as: .zip
Change History (11)
by Scott Sanders, 11 years ago
by Scott Sanders, 11 years ago
by Scott Sanders, 11 years ago
| Attachment: | settings.py added |
|---|
by Scott Sanders, 11 years ago
| Attachment: | settings.2.py added |
|---|
by Scott Sanders, 11 years ago
comment:1 by Scott Sanders, 11 years ago
comment:2 by Florian Apolloner, 11 years ago
| Description: | modified (diff) |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:4 by Tim Graham, 11 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:5 by Claude Paroz <claude@…>, 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:6 by Claude Paroz <claude@…>, 11 years ago
Note:
See TracTickets
for help on using tickets.
Download in other formats:
Django Links
Learn More
Get Involved
Follow Us
- Hosting by In-kind donors
- Design by Threespot &
© 2005-2026 Django Software Foundation unless otherwise noted. Django is a registered trademark of the Django Software Foundation.
This is my common settings.py that imports the other file for dev purposes