#13312: Add a way to customize the order_by() of null fields
-------------------------------------+-------------------------------------
Reporter: Sergey Dobrov | Owner: felixxm
Type: New feature | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: ordering, order_by, | Triage Stage: Ready for
null | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Cloudream):
What about one parameter with three possible values?
nulls_first:
- True: nulls at first
- False: nulls at last
- None (default): database default ordering
--
Ticket URL: <https://code.djangoproject.com/ticket/13312#comment:23>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.9caaecbd4a0753e1a8627228036aa947%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.