#10792: documentation error on ModelForm ModelChoiceField empty option
--------------------+-------------------------------------------------------
 Reporter:  carljm  |       Owner:  nobody    
   Status:  new     |   Milestone:            
Component:  Forms   |     Version:  SVN       
 Keywords:          |       Stage:  Unreviewed
Has_patch:  0       |  
--------------------+-------------------------------------------------------
 The ModelForms documentation at the bottom of
 [http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#field-types
 the "field types" list] states:

 {{{
 The blank choice will not be included if the model field has blank=False
 and an explicit default value (the default value will be initially
 selected instead).
 }}}

 It is true that the default value is initially selected if given, but it
 is not true that the "blank choice will not be included".  It is included
 regardless, unless empty_label is explicitly set to None.

 I would consider the documented behavior here to be better than the actual
 behavior, but given backwards-compatibility it's probably the docs that
 need to change.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10792>
Django <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
-~----------~----~----~----~------~----~------~--~---

Reply via email to