#10471 closed (duplicate)
django.contrib.admin fails on big tables with foreign keys in list_display
Reported by: | arutdag (a) mail dot ru | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | django.contrib.admin fails on big tables | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
django.contrib.admin fails on big tables with foreign keys in list_display. My database contains up to 90K rows with 3 foreign keys.
Reason is in django.contrib.admin.views.main on line 185. Django tries to make huge query.
if self.list_select_related: qs = qs.select_related()
Django version:
1.1 pre-alpha SVN-9765
Database:
MySQL
Note:
See TracTickets
for help on using tickets.
duplicate of #9954