Attribute BaseFormetSet.ordered_forms is broken with blank formsets
|Reported by:||Petr Marhoun <petr.marhoun@…>||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In method BaseFormSet._get_ordered_forms all forms are sorted by function compare_ordering_values. But this function is not defined if the formset is blank.
Attached patch can show problem and fix it.
Change History (7)
Changed 7 years ago by Petr Marhoun <petr.marhoun@…>
comment:1 Changed 7 years ago by jacob
- milestone set to 1.1
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted