#20522: Admin formset validation cannot take submitted model instance into 
account
when form not valid.
-------------------------------------+-------------------------------------
     Reporter:  meshy                |                    Owner:  kamni
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.admin        |                  Version:  master
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  admin formset        |             Triage Stage:  Accepted
  validation                         |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  1
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"c74504c2dd21974571ab72805fbfc8d4d76ce151"]:
 {{{
 #!CommitTicketReference repository=""
 revision="c74504c2dd21974571ab72805fbfc8d4d76ce151"
 Fixed #20522 - Allowed use of partially validated object in
 ModelAdmin.add_view formset validation.

 Updated ModelAdmin to use form.instance when passing parent model to
 child inlines for add_view. There is effectively no change in the
 change_view since the previously passed 'obj' is the same as
 form.instance.

 Thanks to meshy for report, and EvilDMP and timo for review.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20522#comment:19>
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/063.f3d3c8f91925ac3c69a45065162436a1%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to