Opened 8 years ago
Closed 8 years ago
#28186 closed Bug (duplicate)
Formset validate_min bug for empty_forms_count
Reported by: | Mahmud Al-Noor Tareq | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | 1.11 |
Severity: | Release blocker | Keywords: | formset, validation, validate_min |
Cc: | alnoortareq4@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In django.forms.formset.py, in method full_clean, validate_min has bug during update an object.
empty_forms_count is counted by form.has_changed()
But during update, if the content of the form is not changed (which is not empty by the way), has_changed method returns False and the form is considered to be empty.
In this case the validation fails.
Note:
See TracTickets
for help on using tickets.
Looks like a duplicate of #28130 which is fixed in 1.11.1, correct?