#27752: Fix and test admin_order_field set for the __str__ of a model
-------------------------------+------------------------------------
     Reporter:  Claude Paroz   |                    Owner:  (none)
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  dev
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Comment (by VIZZARD-X):

 I have submitted a Pull Request with the fix and a regression test:
 https://github.com/django/django/pull/20488

 The fix ensures `label_for_field` returns `model.__str__` instead of the
 `str` type, allowing `admin_order_field` to be detected correctly.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/27752#comment:11>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019b83e36606-63ae7f45-c62d-4436-a55e-f8df776f57db-000000%40eu-central-1.amazonses.com.

Reply via email to