#25106: ManagementForm data is missing or has been tampered with "admin"
-----------------------------+---------------------------------------------
     Reporter:  unehub       |      Owner:  nobody
         Type:  Bug          |     Status:  new
    Component:               |    Version:  1.8
  contrib.admin              |
     Severity:  Normal       |   Keywords:  admin, inlines, forms, formsets
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0            |      UI/UX:  0
-----------------------------+---------------------------------------------
 I have note  an incidence on the admin, That only happens when change the
 condition.

 {{{

 inlines = [ProductImageInline, AttributeInline]


 def get_formsets_with_inlines(self, request, obj=None):
     """
     Yields formsets and the corresponding inlines.
     """
     for inline in self.get_inline_instances(request, obj):
         if obj is None and isinstance(inline, tuple(self.inlines)):
             continue
         # Here problem when already create obj, and try change parent
 return
         #: Exception Value: ['ManagementForm data is missing or has been
 tampered with']
         elif obj.is_parent and isinstance(inline, ProductImageInline):
             continue
         yield inline.get_formset(request, obj), inline
 }}}

 Depending on whether the object is parent or not, will decide if to show
 some Inline,

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

Reply via email to