Opened 12 years ago
Closed 12 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 |
Description
I believe there is an error in the docs regarding reversing admin URLs: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#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 by , 12 years ago
Cc: | added |
---|---|
Has patch: | set |
Owner: | changed from | to
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Hi,
There was indeed a mistake in the documentation, as you can see from the code: https://github.com/django/django/blob/master/django/contrib/admin/templatetags/admin_urls.py#L8
I made the changes in a pull request: https://github.com/django/django/pull/976
Thank you for the report.