﻿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
17449	[patch] Default OPTIONS implementation in base View class	Steven Cummings	Aymeric Augustin	"I wanted to introduce a couple of relatively minor but useful changes to the base View class.

First, I want to add a default options implementation that simply returns an HTTP 204 response with an Allow header, just like that of the 405 METHOD NOT ALLOWED response. This method could easily be overrided to provide additional or different info in the options response.

Second, I noticed that the default head method assumes that a get method exists. I'm removing the default head and instead setting it to simply be the get method, if it exists, in the view method created in as_view. This was apparently the original proposed implementation of head in ticket #15668. It's unclear why it ended up as it currently is, where an AttributeError can occur if a View does not response to GET.

I brought these changes up on this dev list [https://groups.google.com/forum/#!topic/django-developers/2n0mXnpf4ok post].

Patch forthcoming shortly.
"	New feature	closed	Generic views	1.3	Normal	fixed		jamie.matthews@…	Accepted	1	0	0	0	1	0
