﻿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
28103	"Add ""quarter"" lookup to DateField/DateTimeField"	Matthew Pava	Mads Jensen	"I was able to successfully add it to my project, but it seems so basic and general that I would like to see it added to Django.

{{{
class ExtractQuarter(Extract):
    lookup_name = ""quarter""

DateField.register_lookup(ExtractQuarter)
}}}

You probably also want to add a corresponding Trunc function, though I haven't tested it.
{{{
class TruncQuarter(TruncBase):
    kind = ""quarter""
}}}
"	New feature	closed	Database layer (models, ORM)	dev	Normal	fixed	ORM Extract Trunc	Mariusz Felisiak	Accepted	1	0	0	0	0	0
