[Django] #29313: Add documentation for how to use F() expressions in combination with nulls_last

4 views
Skip to first unread message

Django

unread,
Apr 10, 2018, 8:13:19 PM4/10/18
to django-...@googlegroups.com
#29313: Add documentation for how to use F() expressions in combination with
nulls_last
-----------------------------------------+------------------------------
Reporter: drd0013 | Owner: drd0013
Type: New feature | Status: assigned
Component: Documentation | Version: 1.11
Severity: Normal | Keywords: F Expression
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/29313>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 11, 2018, 1:07:55 PM4/11/18
to django-...@googlegroups.com
#29313: Add documentation for how to use F() expressions in combination with
nulls_last
--------------------------------------+------------------------------------
Reporter: drd0013 | Owner: drd0013
Type: Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.11
Severity: Normal | Resolution:
Keywords: F Expression | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham):

* type: New feature => Cleanup/optimization
* stage: Unreviewed => Accepted


Comment:

[https://github.com/django/django/pull/9869 PR]

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

--
Ticket URL: <https://code.djangoproject.com/ticket/29313#comment:1>

Django

unread,
Apr 12, 2018, 6:14:30 AM4/12/18
to django-...@googlegroups.com
#29313: Add documentation for how to use F() expressions in combination with
nulls_last
-------------------------------------+-------------------------------------
Reporter: drd0013 | Owner: drd0013
Type: | Status: assigned
Cleanup/optimization |
Component: Documentation | Version: 1.11
Severity: Normal | Resolution:
Keywords: F Expression | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/29313#comment:2>

Django

unread,
Apr 19, 2018, 8:08:09 PM4/19/18
to django-...@googlegroups.com
#29313: Add documentation for how to use F() expressions in combination with
nulls_last
-------------------------------------+-------------------------------------
Reporter: drd0013 | Owner: drd0013
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 1.11
Severity: Normal | Resolution: fixed
Keywords: F Expression | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"5d923f2d8cadb06497d255097caa4583d66b697a" 5d923f2d]:
{{{
#!CommitTicketReference repository=""
revision="5d923f2d8cadb06497d255097caa4583d66b697a"
Fixed #29313 -- Doc'd how to use F() to sort null values.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29313#comment:3>

Django

unread,
Apr 19, 2018, 8:10:38 PM4/19/18
to django-...@googlegroups.com
#29313: Add documentation for how to use F() expressions in combination with
nulls_last
-------------------------------------+-------------------------------------
Reporter: drd0013 | Owner: drd0013
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 1.11
Severity: Normal | Resolution: fixed
Keywords: F Expression | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"f3e1e6d601c4107dbfb00c15ecf0ce51e2b6cf10" f3e1e6d]:
{{{
#!CommitTicketReference repository=""
revision="f3e1e6d601c4107dbfb00c15ecf0ce51e2b6cf10"
[2.0.x] Fixed #29313 -- Doc'd how to use F() to sort null values.

Backport of 5d923f2d8cadb06497d255097caa4583d66b697a from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29313#comment:4>

Reply all
Reply to author
Forward
0 new messages