#27416: ModelFormSet with queryset accepts invalid POST data for outer models 
and
create unexpected empty data.
-------------------------------------+-------------------------------------
     Reporter:  Hiroki Kiyohara      |                    Owner:  Hiroki
                                     |  Kiyohara
         Type:  Bug                  |                   Status:  assigned
    Component:  Forms                |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:  formset,modelform    |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

 My first instinct is that this is a duplicate of #26142 but the fact that
 the extra instances are created without the supplied data leaves a
 question as to whether or not the current behavior is actually useful. As
 #27416 says, `extra=0` isn't really meant to prohibit the creation of new
 instances. Without digging into the details, I'd say it might be
 appropriate to fix the current behavior to create instances with the
 provided data (as a separate ticket) and then in this ticket add a new
 `modelformset_factory()` parameter to prohibit the creation of new
 instances.

--
Ticket URL: <https://code.djangoproject.com/ticket/27416#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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.d9e721486a7379ec964ae53c75635a26%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to