#24316: Admin changelist column CSS classes do not use short description, 
instead
using str(list_display_function)
-------------------------------+------------------------------------
     Reporter:  JordanBright   |                    Owner:
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  1.7
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by timgraham):

 I improved the patch to address both cases mention in the ticket
 description. I chose to use `callable.__name__` instead of
 `short_description` as I didn't see why the `short_description` should be
 considered for a CSS class. In particular, I expect it would be more
 common to change the `short_description` than the callable's name, and I
 think less the CSS class changes, the better. Let me know if I missed
 something.

--
Ticket URL: <https://code.djangoproject.com/ticket/24316#comment:6>
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/070.a766efa9f37f796eb21ab583a24c6123%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to