Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#29313 closed Cleanup/optimization (fixed)

Add documentation for how to use F() expressions in combination with nulls_last

Reported by: drd0013 Owned by: drd0013
Component: Documentation Version: 1.11
Severity: Normal Keywords: F Expression
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

nulls_last was added to Django but there is not a clear example on how to use it. I had to consult stack overflow for someone showing how it was used and would like to bring that into the Django docs.
I have made the documentation changes already and am making a ticket before submitting the PR.

Change History (4)

comment:1 by Tim Graham, 6 years ago

Triage Stage: UnreviewedAccepted
Type: New featureCleanup/optimization

PR

The original documentation (47ef8f31f30a2b1920f82494d729c285565867dd) lacks examples. The documentation for asc() and desc() might link to the proposed examples.

comment:2 by Carlton Gibson, 6 years ago

Triage Stage: AcceptedReady for checkin

comment:3 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In 5d923f2d:

Fixed #29313 -- Doc'd how to use F() to sort null values.

comment:4 by Tim Graham <timograham@…>, 6 years ago

In f3e1e6d:

[2.0.x] Fixed #29313 -- Doc'd how to use F() to sort null values.

Backport of 5d923f2d8cadb06497d255097caa4583d66b697a from master

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