#4653: form_for_instance generates empty choice for non-blank CharField with
options
---------------------------------------------------------+------------------
Reporter: Ilya Semenov <[EMAIL PROTECTED]> | Owner:
adrian
Status: new |
Component: django.newforms
Version: SVN |
Resolution:
Keywords: form_for_instance CharField options blank |
Stage: Design decision needed
Has_patch: 1 |
Needs_docs: 0
Needs_tests: 0 |
Needs_better_patch: 1
---------------------------------------------------------+------------------
Changes (by Ilya Semenov <[EMAIL PROTECTED]>):
* keywords: form_for_instance form_for_model CharField options blank =>
form_for_instance CharField options blank
Comment:
> The purpose of the empty option is to force users to make a selection by
not providing an implicit default.
You're not reading carefully. That's not about forcing users to ''make'' a
selection (as in case with form_for_model). That's about (visual)
possibility to ''change'' the previously-made-selection to '--------'.
Consider a required field which three possible choices: A, B, C.[[br]]
The form_for_model field (if there's no explicit default) should display
'-----' as default and 3 choices below.[[br]]
The form_for_instance field should display the previously-selected value
as default and 2 other choices to change to.[[br]]
''Choosing'' a value and ''changing'' a value are different things.
--
Ticket URL: <http://code.djangoproject.com/ticket/4653#comment:6>
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
-~----------~----~----~----~------~----~------~--~---