﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28650	Add TruncWeek	Sigurd Ljødal	Sigurd Ljødal	"Add `TruncWeek` class to truncate date/datetime fields to midnight at the monday of the week. This is useful to e.g. group values by week.

{{{
from django.db.models.functions import TruncWeek

SomeModel.objects.annotate(
    monday_of_week=TruncWeek('some_date'),
).values(
    'monday_of_week',
).annotate(
    sum=Sum('some_field'),
)
}}}"	New feature	closed	Database layer (models, ORM)	dev	Normal	fixed	ORM Extract		Accepted	1	0	0	1	0	0
