#24263 closed Cleanup/optimization (fixed)
Optimization: django.views.generic.dates.BaseDateDetailView
Reported by: | EugeneM | Owned by: | nobody |
---|---|---|---|
Component: | Generic views | Version: | 1.7 |
Severity: | Normal | Keywords: | Optimization BaseDateDetailView |
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
I guess you need to use a patch (see attach) to prevent running an excess query to DB because of comparison
Attachments (2)
Change History (7)
by , 10 years ago
Attachment: | django-1.7.3.patch added |
---|
comment:1 by , 10 years ago
Could you add a regression test using assertNumQueries()
to demonstrate what has changed?
comment:2 by , 10 years ago
It looks like you can use this patch for different versions of Django
Version 0, edited 10 years ago by (next)
comment:3 by , 10 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|---|
Type: | Uncategorized → Cleanup/optimization |
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch