#14090 closed (fixed)
Many sql queries needed to display change user form
| Reported by: | Alexander Schepanovski | Owned by: | Alexander Schepanovski |
|---|---|---|---|
| Component: | contrib.auth | Version: | 1.2 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Permission.__unicode__ refers to content_type, so while rendering options for user_permissions field a sql query is executed to fetch every content_type for every permission.
Attachments (1)
Change History (7)
by , 15 years ago
| Attachment: | auth.permissions.select_related.content_type.diff added |
|---|
comment:1 by , 15 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 15 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 15 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:5 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:6 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
This is #13690 with a proposed fix, thanks. In a quick test on a random project the suggested change reduces the number of SQL queries for bringing up a change user page from 109 to 8.