#14758 closed (fixed)
QuerySet method docs headings contain entire method signatures
Reported by: | Gabriel Hurley | Owned by: | Adam Vandenberg |
---|---|---|---|
Component: | Documentation | Version: | 1.2 |
Severity: | Keywords: | easy-pickings | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Take a look at this URL (the URL itself, not the page):
Basically, the headings for the QuerySet
methods (and consequently the hash for the anchors in the URLs) contain the entire method signature. This is completely non-functional (as opposed to the :method:
declarations directly beneath the headings), it adds unnecessary detail to the page's TOC, and it makes the URLs for those anchors unbearably long/cluttered.
As such, the headings for those methods should all be reduced to simply the name of the method, leaving the method signature defined below.
It looks like the duplication stems from the headings having been written first, and left in place as-is after the method directives were added.
The only downside to fixing this is that any existing external links directly to one of these anchors would now go to top of the page rather than directly to the section within the page.
Attachments (2)
Change History (7)
comment:1 by , 14 years ago
Owner: | changed from | to
---|
by , 14 years ago
Attachment: | fix-queryset-headers.diff added |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Update queryset headers on page (haven't checked cross-links yet)