Opened 7 years ago

Closed 7 years ago

#20160 closed Uncategorized (fixed)

Error in admin site docs: model instead of module

Reported by: anonymous Owned by: Baptiste Mispelon
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 7 years ago by Baptiste Mispelon

Cc: bmispelon@… added
Has patch: set
Owner: changed from nobody to Baptiste Mispelon
Status: newassigned
Triage Stage: UnreviewedAccepted


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 7 years ago by Simon Charette <charette.s@…>

Resolution: fixed
Status: assignedclosed

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