Admin documentation incorrect hyperlinks

16 views
Skip to first unread message

Martyn Pearson

unread,
Jul 1, 2020, 8:56:58 AM7/1/20
to Django users
I have an issue with Django, so wanted to raise it here before going to the extent of raising a bug.

For a simple scenario, I have a site "Survey", an app "Report" and models "Question" and "Answer". Note that the case is important; I've capitalised the first letter of each.

Admin documentation is turned on, and if I go to the documentation models page (e.g. http://localhost:8000/admin/doc/models/) I can see a link to the Question and Answer pages and this link takes me to the model pages correctly, for example the Question page at http://localhost:8000/admin/doc/models/Report.question/

However, if I try to follow any of the links on that page to other models - either those generated automatically or those I add through the use of the text :model:`Report.Question` they fail. It appears that the links have been generated using a lower case representation of the app, i.e. http://localhost:8000/admin/doc/models/report.question/ rather than the correct case.

Does this indicate I have missed something or is this likely to be a bug which I need to raise on the bug tracker?

For transparency, I will add that I have posted this on Stack Overflow too - https://stackoverflow.com/questions/62656784/django-admin-documentation-with-mixed-case-project-name - but should either approach yield a solution I'll update the other for others reference.

Many thanks!
Reply all
Reply to author
Forward
0 new messages