Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#1841 closed defect (duplicate)

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

Reported by: russblau Owned by: adrian
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:

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 Changed 9 years ago by anonymous

  • Resolution set to duplicate
  • Status changed from new to closed

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

dup of #1840

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