FormSet uses incorrect logic for is_bound
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The init logic of the FormSet is incorrect, and doesn't follow the logic of a Form:
self.is_bound = data is not None and files is not None
self.is_bound = data is not None or files is not None
The "and" in the FormSet code makes a FormSet that is passed data but no files set is_bound = False.