#23760: ModelForm wrong default value on field without fields Meta attribute
neither initial data.
-------------------------------------+-------------------------------------
     Reporter:  aRkadeFR             |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |                  Version:  1.6
    Component:  Forms                |               Resolution:  invalid
     Severity:  Normal               |             Triage Stage:
     Keywords:  form, modelform,     |  Unreviewed
  default, value                     |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by timgraham):

 "if in the template you don't render a form input or your missing a value
 in the data, it creates the wrong value."

 That's considered an error by the developer. You shouldn't include the
 field on the form if you don't intend to render or populate it.

--
Ticket URL: <https://code.djangoproject.com/ticket/23760#comment:3>
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/066.518c6494da3f3a022c9f46fbf347b634%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to