must pass `list` not `tuple` as `exclude` (as seen in docs) to `inlineformset_factory`.
|Reported by:||mrmachine||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If the exclude argument is not None but is also not list an exception will be raised as we try to append the foreign key field. Patch simply calls list() on exclude to allow any iterable to be passed in, similar to ChoiceField._set_choices.
Change History (4)
Changed 6 years ago by mrmachine
comment:1 Changed 6 years ago by brosner
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted