﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25106	"ManagementForm data is missing or has been tampered with ""admin"""	Felipe	nobody	"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,"	Bug	closed	contrib.admin	1.8	Normal	invalid	admin, inlines, forms, formsets		Unreviewed	0	0	0	0	0	0
