Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#34463 closed Cleanup/optimization (fixed)

WHERE clause example missing from Q() documentation

Reported by: ExTexan Owned by: Yahya Ali
Component: Documentation Version: 4.2
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

On this page:
https://docs.djangoproject.com/en/4.2/topics/db/queries/#complex-lookups-with-q-objects

...a short way down from the section title: "Complex lookups with Q objects"

...is a line that says: "This is equivalent to the following SQL WHERE clause:"

but the WHERE clause is not shown.

Change History (7)

comment:1 by Mariusz Felisiak, 20 months ago

Triage Stage: UnreviewedAccepted

Great catch! There is a typo in the docs source, it should be .. code-block:: sql, so the second : is missing. Would you like to prepare a patch?

Please fix also the same typo in docs/topics/i18n/translation.txt.

comment:2 by Yahya Ali, 20 months ago

Owner: changed from nobody to Yahya Ali
Status: newassigned

comment:3 by Yahya Ali, 20 months ago

Has patch: set

comment:5 by Mariusz Felisiak, 20 months ago

Triage Stage: AcceptedReady for checkin

comment:6 by GitHub <noreply@…>, 20 months ago

Resolution: fixed
Status: assignedclosed

In 263db8a:

Fixed #34463 -- Corrected code-block directives in docs.

Thanks ExTexan for the report.

comment:7 by Mariusz Felisiak <felisiak.mariusz@…>, 20 months ago

In e68da20:

[4.2.x] Fixed #34463 -- Corrected code-block directives in docs.

Thanks ExTexan for the report.
Backport of 263db8af469f0f3a5bd8ddc4a7dd0154c3d1fbca from main

Note: See TracTickets for help on using tickets.
Back to Top