Opened 3 years ago

Closed 3 years ago

#20160 closed Uncategorized (fixed)

Error in admin site docs: model instead of module

Reported by: anonymous Owned by: bmispelon
Component: Documentation Version: 1.5
Severity: Normal Keywords: model_name
Cc: bmispelon@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I believe there is an error in the docs regarding reversing admin URLs: in 'The opts variable can be any object which has an app_label and module_name and is usually supplied by the admin views for the current model.'

I think module_name should be model_name.

Change History (2)

comment:1 Changed 3 years ago by bmispelon

  • Cc bmispelon@… added
  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to bmispelon
  • Patch needs improvement unset
  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Accepted


There was indeed a mistake in the documentation, as you can see from the code:

I made the changes in a pull request:

Thank you for the report.

comment:2 Changed 3 years ago by Simon Charette <charette.s@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In 391ec5a08582f9479366e38afb4cb0547c39f073:

Fixed #20160 -- Erronous reference to module_name in admin doc.

Ref #19689.

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