#23760: ModelForm wrong default value on field without fields Meta attribute
neither initial data.
-------------------------------------+-------------------------------------
     Reporter:  aRkadeFR             |      Owner:  nobody
         Type:                       |     Status:  new
  Cleanup/optimization               |    Version:  1.6
    Component:  Forms                |   Keywords:  form, modelform,
     Severity:  Normal               |  default, value
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+-------------------------------------
 I haven't found any similar ticket.

 Create a Model with a BooleanField, null=False, default=True, blank=True.

 Create the ModelForm with the Meta attribute model = ModelClass

 Then if you want to create a ModelClass through the ModelForm(data={ XXXX
 without the BooleanField } ) , this will setup the booleanfield to False .

 This is pretty unconvenient when upgrading a model without touching the
 forms.

--
Ticket URL: <https://code.djangoproject.com/ticket/23760>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.713d308ac1e1f88a4cb85e43eb9cf463%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to