#28458: Add ModelMultipleChoiceField.validate_choices()
-------------------------------+-------------------------------------
Reporter: Daniel Hahler | Owner: gasparb16
Type: New feature | Status: closed
Component: Forms | Version: master
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: assigned => closed
* resolution: => wontfix
Comment:
We should have a valid use case if we want to add a new hook.
`validate_choices()` can be used to avoid a queryset evaluation, but I'm
not sure it's enough to justify adding it. It's really niche and was more
of a workaround than a real need (see #27148). I'm going to say "wontfix"
unless there's a more legitimate use-case.
--
Ticket URL: <https://code.djangoproject.com/ticket/28458#comment:11>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.2818a1abec247b11ca80712209b444a8%40djangoproject.com.