#28171: Raise an exception if Form's empty_permitted and use_required_attribute
arguments conflict
-------------------------------------+-------------------------------------
Reporter: Vlastimil Zíma | Owner: Naveen
Type: | Yadav
Cleanup/optimization | Status: assigned
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Naveen Yadav):
Thanks for suggestion Tim.
I tried raising {{{ ValueError }}} which causes lot of tests to fail
because of this
line[https://github.com/django/django/blob/master/django/forms/formsets.py#L172]
all related to formset. I guess when forms are created through formset
both values `empty_permitted` and `use_required_attribute` are same.
Should i place check if form(s) is created via {{{formset}}} then error
should not be raised ?
--
Ticket URL: <https://code.djangoproject.com/ticket/28171#comment:5>
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/063.3ff813f2cd15a25dd4ef6f1ae50e8f98%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.