Opened 10 years ago

Closed 9 years ago

#3599 closed (duplicate)

login_required decorator breaks automatic views documentation in admin cp

Reported by: anonymous Owned by: adrian
Component: contrib.admin Version: master
Severity: Keywords: admin, view documentation
Cc: dagurp@… Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


If I view /admin/doc/views/ (i.e. the "Views" part of the documentation in the Admin CP), all the links to views with a login_required decorator are the same or


Of course clicking them just gives me a 404.

Change History (2)

comment:1 Changed 9 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

This is something that's very difficult to fix, since the "correct" way to deal with it involves assigning to __name__ in the function returned by the decorator, which breaks compatibility with Python 2.3. I'm honestly not certain it's worth the effort that would be needed to work around it in other ways.

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

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

dup of #1840.

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