Opened 7 years ago

Closed 7 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.

Attachments (0)

Change History (2)

comment:1 Changed 7 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 7 years ago by Gary Wilson <gary.wilson@…>

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

dup of #1840.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.