#27917: Allow ModelAdmin.radio_fields to work with NullBooleanField
--------------------------------------+------------------------------------
     Reporter:  Jerome Leclanche      |                    Owner:  Musen
         Type:  Cleanup/optimization  |                   Status:  closed
    Component:  contrib.admin         |                  Version:  1.10
     Severity:  Normal                |               Resolution:  fixed
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Jacob Walls):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In d976c254fc76e5f04d81dfd9d142c58e933c9c92 the decision was made to
 document providing `choices` to `forms.NullBooleanField` in order to use
 `Select` or `RadioSelect` widgets. I believe that also resolves this
 issue, since the error message is now appropriate:

 {{{
 (admin.E023) The value of 'radio_fields' refers to 'foo', which is not an
 instance of ForeignKey, and does not have a 'choices' definition.
 }}}

 See discussion on tickets #23681 and #27445.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/27917#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.22a8d9e3d838b4236fbafe6f98bee061%40djangoproject.com.

Reply via email to