﻿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
24958	Inline admins broken with UUID parent key and AutoField child key	Jason Hoos	Jason Hoos	"If you have a parent model that has a UUIDField as a primary key, and a child model that uses the default AutoField as its primary key, then an admin form that uses an inline form containing that child model will fail with a `Please correct the errors below.` message with no other errors on the form.

The underlying cause turned out to be related to issue #24377.  The fix for that issue accounted for both parent and child being UUID-based, but not for the mixed case.  Specifically, in the `add_fields` method of `BaseInlineFormSet`, #24377 checks to see if the parent object is being added, and then checks to see whether the primary key field on the child object is using a generated default value.  It should instead be checking whether the related key field on the //parent// object is using a generated value.

I have a pull request with a potential fix for this issue.  It also fixes the similar case where the AutoField child model is related to a UUIDField alternate key in the parent model.
"	Bug	closed	Forms	1.8	Release blocker	fixed			Accepted	1	0	0	1	0	0
