﻿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
28815	Incorrect ExtractYear imports in Window functions docs	benjaoming	nobody	"Documentation has the wrong location of `ExtractYear`:

https://docs.djangoproject.com/en/2.0/ref/models/expressions/#window-functions

Example:

{{{
>>> from django.db.models import Avg, ExtractYear, F, Window
Traceback (most recent call last):
  File ""<input>"", line 1, in <module>
    from django.db.models import Avg, ExtractYear, F, Window
ImportError: cannot import name 'ExtractYear'
}}}

Should these functions be available from `django.db.models`? The module already contains quite a heavy load of imports....

References:

`django.db.models.functions.datetime` created in:
https://github.com/django/django/commit/77b73e79a4750dcbfabc528bf00cad81ff5bb4d9

Window expression PR:
https://github.com/django/django/pull/7611/files"	Bug	closed	Documentation	dev	Normal	fixed			Ready for checkin	1	0	0	0	1	0
