#35870: Allow customization of the blank option in select dropdowns
-------------------------------------+-------------------------------------
     Reporter:  Marijke Luttekes     |                    Owner:  Thibaud
         Type:                       |  Colas
  Cleanup/optimization               |                   Status:  assigned
    Component:  Forms                |                  Version:  5.0
     Severity:  Normal               |               Resolution:
     Keywords:  accessibility        |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Carlton Gibson):

 Not sure the monkey patch approach works...

 It's used like this at class definition time...

 {{{
 def get_choices(
         self,
         include_blank=True,
         blank_choice=BLANK_CHOICE_DASH,
         limit_choices_to=None,
         ordering=(),
     ):
 }}}

 ... so the `blank_choice` default is set before any monkey patch can
 apply.

 Sorry for the bum lead there, 'twas but a hunch.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35870#comment:7>
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/01070192d3db64dc-808e1122-1394-4559-ba76-57d69cc323f5-000000%40eu-central-1.amazonses.com.

Reply via email to