Opened 19 years ago

Closed 19 years ago

Last modified 18 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: no UI/UX: no

Description

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:

/admin/doc/views/
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 by anonymous, 19 years ago

Resolution: duplicate
Status: newclosed

comment:2 by Gary Wilson <gary.wilson@…>, 18 years ago

dup of #1840

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