#4092: django/contrib/localflavor/usa/forms.py USStateSelect missing blank
options
-----------------------------------------+----------------------------------
Reporter: polpak <[EMAIL PROTECTED]> | Owner: dougn
Status: new | Component:
django.contrib.localflavor
Version: SVN | Resolution:
Keywords: | Stage: Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-----------------------------------------+----------------------------------
Comment (by dougn):
I really don't care for !NullSelect either. I thought of other names
(!EmptySelect, !BlankSelect, etc) but !NullSelect fit the meme of
!NullBooleanSelect and others.
I also considered adding the empty_label to the !Select widget it's self,
but there is no good way of doing this
without breaking most implementations out there. The nice part about
NullSelect is that it does not change any existing behavior.
One option would be to add it to !Select, defaulting to None, and
providing a EMPTY_LABEL global for people to use
(so that u'--------' is defined somewhere). This would be a rather verbose
way of doing it though.
--
Ticket URL: <http://code.djangoproject.com/ticket/4092#comment:12>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---