#31975: admin_order_field in ModelAdmin doesn't support sorting on multiple 
columns
-------------------------------------+-------------------------------------
     Reporter:  Petr DlouhĂ˝          |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  contrib.admin        |                  Version:  3.1
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  admin_order_field,   |             Triage Stage:
  ModelAdmin                         |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by felixxm):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 `admin_order_field` doesn't support multiple columns as documented, you
 can try to use `admin_order_field = Concat('issued__year',
 'issued__month', 'number')`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31975#comment:2>
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/068.a122c77f817e2e34a76fabcd09029707%40djangoproject.com.

Reply via email to