#32573: Query optimization in YearLookup breaks filtering by "__iso_year" -------------------------------------+------------------------------------- Reporter: Florian Demmer | Owner: Florian | Demmer Type: Bug | Status: assigned Component: Database layer | Version: 2.2 (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak):
* needs_better_patch: 0 => 1 * stage: Unreviewed => Accepted Comment: Thanks for the report. I think we can preserve an optimization but for different boundaries. We can use [https://docs.python.org/3/library/datetime.html#datetime.date.fromisocalendar .fromisocalendar()] (available in Python 3.8+). -- Ticket URL: <https://code.djangoproject.com/ticket/32573#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.62a814023de8f690a78e8354a8429b4a%40djangoproject.com.