#17774: In BooleanField default value is not set
-----------------------------+--------------------------------------
     Reporter:  ptrans_pp@…  |                    Owner:  nobody
         Type:  Bug          |                   Status:  closed
    Component:  Forms        |                  Version:  1.3
     Severity:  Normal       |               Resolution:  invalid
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+--------------------------------------
Changes (by ramiro):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 I can't reproduce this:

 {{{
 In [1]: from t17774.forms import EmployeeForm

 In [2]: f = EmployeeForm()

 In [3]: f.is_valid()
 Out[3]: False
 }}}

 I'm using the sqlite DB backend.

 is_valid() doesn't return True when instantiating an !EmployeeForm without
 initial data to create a new Employee instance  and without an associated
 existing Employee model instance to edit.

 To the contributor that opened the ticket: reopen it if you can provide
 full details about your setup and if you can confirm the form handling
 code you are using is effectively the one you've pasted above.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17774#comment:2>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to