#22745: ModelChoiceField and ModelMultipleChoiceField with RadioSelect and
CheckboxSelectMultiple widgets produce unnecessary db queries while
rendering form (particularily in contrib.admin)
--------------------------------------+------------------------------------
Reporter: Althalus | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Althalus):
This patch fixes obviously wrong behaviour which can be faced when using
`ModelChoiceField`s in a common way (including admin).
But still accessing certain widget values from templates by index will
trigger qs every time. May be we can use some cache here?
--
Ticket URL: <https://code.djangoproject.com/ticket/22745#comment:4>
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/066.54fa2b51b5c02c3b1814d251154a08d7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.