Opened 11 years ago

Closed 11 years ago

#3599 closed (duplicate)

login_required decorator breaks automatic views documentation in admin cp

Reported by: anonymous Owned by: Adrian Holovaty
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 11 years ago by James Bennett

Triage Stage: UnreviewedDesign 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 11 years ago by Gary Wilson <gary.wilson@…>

Resolution: duplicate
Status: newclosed

dup of #1840.

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