#31295: Avoid Select widget triggering additional query when using
ModelChoiceIterator.
--------------------------------------+------------------------------------
     Reporter:  Aurélien Pardon       |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Forms                 |                  Version:  2.2
     Severity:  Normal                |               Resolution:
     Keywords:  Model                 |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Aarav Sharma):

 * cc: Aarav Sharma (added)
 * has_patch:  0 => 1

Comment:

 Submitted a PR addressing this issue:
 https://github.com/django/django/pull/20939
 This change avoids an additional database query in
 Select.use_required_attribute when using ModelChoiceIterator, while
 preserving existing behavior.
 Happy to make any adjustments if needed.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/31295#comment:14>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019d021df717-b63712ff-9814-46f8-a629-4d58d815df0e-000000%40eu-central-1.amazonses.com.

Reply via email to