#21095: Release notes and documentation don't mention queryset week_day breakage on mysql if you haven't loaded tzinfo -------------------------------+-------------------------- Reporter: mattaustin | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: 1.6-beta-1 Severity: Normal | Keywords: releasenotes Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------------- When switching to Django 1.6b2, queries such as {{{MyModel.objects.filter(start_at__week_day=1)}}} started returning empty querysets. After investigation, it turned out I had to load tzinfo in to the database, as described at https://docs.djangoproject.com/en/1.6/ref/models/querysets/#database-time- zone-definitions. Although the release notes mention this is required for the new QuerySet.datetimes() functionality, there was nothing mentioning it was required for using week_day lookups.
As this could break previously working projects with Django 1.5, it should probably be made clear in the release notes and queryset documentation. -- Ticket URL: <https://code.djangoproject.com/ticket/21095> 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 post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.11b226fa46df238a508a0fea979c3735%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.