﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36450	View source code links in docs are broken in some places	Gavin Wahl		"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."	Bug	closed	Documentation	5.2	Normal	invalid		David Smith	Accepted	0	0	0	0	0	0
