#25349: ModelForm regression when setting None into a ForeignKey
--------------------------+------------------------------------
     Reporter:  jpaulett  |                    Owner:  nobody
         Type:  Bug       |                   Status:  new
    Component:  Forms     |                  Version:  1.8
     Severity:  Normal    |               Resolution:
     Keywords:            |             Triage Stage:  Accepted
    Has patch:  0         |      Needs documentation:  0
  Needs tests:  0         |  Patch needs improvement:  0
Easy pickings:  0         |                    UI/UX:  0
--------------------------+------------------------------------

Comment (by timgraham):

 If I had to guess 45e049937d2564d11035827ca9a9221b86215e45 might be the
 related commit.

 System checks don't really work for forms (at least we don't have any
 now), since options like `Field.required` can be set dynamically in
 `Form.__init__()` and system checks are static analysis. I don't know if
 we must require `blank=True` on model fields for `required=False`, but I
 agree it would be good to investigate and document the findings.

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

Reply via email to