Opened 6 years ago
Closed 6 years ago
#29594 closed Uncategorized (duplicate)
Support for TruncWeek Database function (Eliminating need for QuerySet.extra)
Reported by: | Jesse Nieminen | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.11 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The Trunc database function now supports a number of different kinds of timeframes but is notably lacking support for week.
This is also one of the more common use cases where it would be easy to eliminate the need for using QuerySet.extra.
Note:
See TracTickets
for help on using tickets.
Duplicate of #28650 which is fixed in the Django 2.1 RC by a455e732a0011dfbd15eddaa4fe60cb9439326e0.