Ticket #11604: 11604-changelist-select-related-depth.diff

File 11604-changelist-select-related-depth.diff, 542 bytes (added by rlaager@…, 6 years ago)
  • django/contrib/admin/views/main.py

     
    210210                        pass
    211211                    else:
    212212                        if isinstance(f.rel, models.ManyToOneRel):
    213                             qs = qs.select_related()
     213                            qs = qs.select_related(depth=1)
    214214                            break
    215215
    216216        # Set ordering.
Back to Top