Ticket #14396: django-admin-query-burst.patch

File django-admin-query-burst.patch, 565 bytes (added by piro, 14 years ago)
  • Django-1.2.3-py2.5.egg/django/contrib/admin/views/main.py

    old new  
    212212                        pass
    213213                    else:
    214214                        if isinstance(f.rel, models.ManyToOneRel):
    215                             qs = qs.select_related()
    216                             break
     215                            qs = qs.select_related(field_name)
    217216
    218217        # Set ordering.
    219218        if self.order_field:
Back to Top