#34960: Document how to set nulls_last=True for admin_order_field/ordering
-------------------------------------+-------------------------------------
     Reporter:  Petr DlouhĂ˝          |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  4.2
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * type:  New feature => Cleanup/optimization
 * resolution:   => wontfix


Comment:

 Thanks for the ticket. #30981 fixed a bug, not added a new feature. All
 database expressions can be used in `ordering` and it's not an admin-
 specific feature. Moreover, docs already explain how to sort `NULL`s in a
 few places:
 - https://docs.djangoproject.com/en/stable/ref/models/expressions/#using-f
 -to-sort-null-values
 -
 
https://docs.djangoproject.com/en/stable/ref/models/options/#django.db.models.Options.ordering
 - https://docs.djangoproject.com/en/stable/ref/models/querysets/#order-by
 some of them are reference in the Admin docs. I don't think it's worth
 mentioning in the next place.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34960#comment:1>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018bb390b785-8930be58-ae93-48d1-b4a8-d21aed4c2cef-000000%40eu-central-1.amazonses.com.

Reply via email to