edit_inline forces core=True ... core=True forces every *shown* field to be filled in
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
A "Profile" can have multiple settings
class Profile(models.Model): name=CharField();
A "Setting" is a variable identifier, as associated value, and action
class Setting(models.Model): myprofile=ForeignKey(Profile,edit_inline=..); identifier=CharField(); value=CharField(); action=BooleanField()
"Admin -> Profile -> Add" shows the form with Profile files and a few Settings (e.g., 3)
Setting 1 = identifier: foo value: bar action: [X]
Setting 2 = identifier: aaa value: bbb action: [_]
Setting 3 = leave all fields empty
Django *forces* you to fill in all the offered rows. The required 'core=True' in the setting members force this.
You cannot fulfill the core=True requirement by filling in most of the rows completely.
If you have 2 variables/values/actions, then you cannot save.
There should be a way to remove unwanted edit_inline children ... or allow submission of complete sets of children, but not all the sets offered by the interface.
Work around = set the admin to show only 1 at a time, and force the user to submit and change the Parent multiple times.