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 Baptiste Mispelon, 12 years ago

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

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.

comment:2 by Simon Charette <charette.s@…>, 12 years ago

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