#15957: ModelChoiceField slow performance
------------------------------------------------+------------------------
               Reporter:  uriel.bertoche@…      |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  closed
              Milestone:                        |      Component:  Forms
                Version:  1.3                   |       Severity:  Normal
             Resolution:  wontfix               |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
------------------------------------------------+------------------------

Comment (by aaugustin):

 
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_select_related
 says the admin is already preloading related models:
 {{{
 Note that Django will use select_related(), regardless of this setting if
 one of the list_display fields is a ForeignKey.
 }}}

 If this is not true, then it's a bug in Django; could you provide a test
 case showing the problem?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15957#comment:3>
Django <http://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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to