#26277: The list_display for CharField doesn't work for None value among choices
-------------------------------------+-------------------------------------
     Reporter:  PetrDlouhy           |                    Owner:
                                     |  vincepandolfo
         Type:  New feature          |                   Status:  assigned
    Component:  contrib.admin        |                  Version:  1.9
     Severity:  Normal               |               Resolution:
     Keywords:  list_filter          |             Triage Stage:  Accepted
  CharField admin                    |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  1
-------------------------------------+-------------------------------------

Comment (by vincepandolfo):

 I am working on a patch here:
 https://github.com/vincepandolfo/django/tree/ticket_26277

 I did not send a pull request yet because I am not sure if this is the
 behaviour we want it to have.
 My current implementation allows a None value to be in the choices of a
 `ChoicesFieldListFilter` and, in the case of a `CharField`, if the empty
 string is among the choices and `null=True` it ignores it since empty
 strings are converted to Null in the database.

--
Ticket URL: <https://code.djangoproject.com/ticket/26277#comment:3>
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/068.7704a74c27ff041ea00a825cfa1fd7d2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to