﻿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
3134	[patch] The archive_year date-based generic view should not override a model's default ordering	matt.riggott@…	Jacob	"The {{{archive_month}}}, {{{archive_week}}}, and {{{archive_day}}} date-based generic views all respect a model's default ordering — that is, none of those generic views append {{{order_by()}}} when they filter a {{{QuerySet}}}.  The {{{archive_year}}} view, however, will always return a chronological list of objects; this cannot be overridden.

The offending code is [http://code.djangoproject.com/browser/django/trunk/django/views/generic/date_based.py#L79 line 79 (in the current Subversion trunk)].

I might be wrong, but I think {{{archive_year}}} should adhere to a model's default ordering, as the related date-based views do.  But since this would change the expected behaviour of a lot of existing sites, I guess an optional parameter allowing a programmer to specify the ordering would be nice.  I'll attach a patch."	defect	closed	Generic views	dev	minor	fixed		gary.wilson@…	Design decision needed	1	0	0	0	0	0
