#16013: ModelChoiceIterator unnecessarly clone queryset
---------------------------------+----------------------------
 Reporter:  maksymus007@…        |          Owner:  nobody
     Type:  Bug                  |         Status:  new
Milestone:                       |      Component:  Forms
  Version:  1.3                  |       Severity:  Normal
 Keywords:  ModelChoiceIterator  |   Triage Stage:  Unreviewed
Has patch:  0                    |  Easy pickings:  0
---------------------------------+----------------------------
 ModelChoiceField gets queryset as an init argument and uses
 ModelChoiceIterator for populating choices. Iterator than calls
 queryset.all() which makes an unnecessary clone of QS - making its cached
 data go away and issuing new database query if a queryset has been
 evaluated before.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/16013>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to