#28186: Formset validate_min bug for empty_forms_count
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
alnoorcse09 |
Type: Bug | Status: new
Component: Forms | Version: 1.11
Severity: Release | Keywords: formset,
blocker | validation, validate_min
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/28186>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/054.4a8906820305431c698a0f2d82531662%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.