Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1841 closed defect (duplicate)

admin/doc/views shows decorator instead of actual view function

Reported by: russblau Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


If a view function is wrapped with a Python decorator, the admin interface will show that decorator in place of the actual view (in admin/doc/views). For example:

View function: django.contrib.admin.views.decorators._checklogin

The actual view function is 'django.contrib.admin.views.doc.view_index', but it's wrapped with the staff_member_required() decorator, which in turn returns the _checklogin function object.

Change History (2)

comment:1 Changed 12 years ago by anonymous

Resolution: duplicate
Status: newclosed

comment:2 Changed 12 years ago by Gary Wilson <gary.wilson@…>

dup of #1840

Note: See TracTickets for help on using tickets.
Back to Top