Groups
Groups
Sign in
Groups
Groups
Django updates
Conversations
About
Send feedback
Help
[Django] #36450: View source code links in docs are broken
1 view
Skip to first unread message
Django
unread,
Jun 9, 2025, 7:34:50 PM
6/9/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#36450: View source code links in docs are broken
----------------------------+-----------------------------------------
Reporter: Gavin Wahl | Type: Bug
Status: new | Component: Documentation
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+-----------------------------------------
Steps:
- Go to [
https://docs.djangoproject.com/en/5.2/ref/models/querysets/#sum
Docs for django.db.models.sum]
- Click the '[source]' link
- End up at a github link highlighting a line that doesn't exist:
https://github.com/django/django/blob/stable/5.2.x/django/db/models/aggregates.py#L383
There is no line 383 in that file, so the link to the source code is
broken. It should link to line 192.
I'm seeing this in lots of places in the docs:
https://docs.djangoproject.com/en/5.2/ref/models/constraints/#checkconstraint
links to line 130, should be 153
https://docs.djangoproject.com/en/5.2/ref/paginator/#django.core.paginator.Paginator
links to line 154, should be 27
...etc...
I assume this was broken in #29942 when the sphinx.ext.linkcode extension
was added.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36450
>
Django <
https://code.djangoproject.com/
>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages