Opened 18 years ago

Closed 18 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: dev
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: no UI/UX: no

Description

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

/admin/doc/views/django.contrib.auth.decorators._checklogin/

Of course clicking them just gives me a 404.

Change History (2)

comment:1 by James Bennett, 18 years ago

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 by Gary Wilson <gary.wilson@…>, 18 years ago

Resolution: duplicate
Status: newclosed

dup of #1840.

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