tomchristie/django-rest-framework — pull request #1507 by NadavK (2014-04-07 14:33:19+00:00)
Title: Correctly propagate cloned_request for OPTIONS

The OPTIONS method creates a cloned-request to simulate PUT/POST methods. But the implementation did not propagate the cloned-request to the View. This caused views that change the serializer per the http-method to return the incorrect serializer.
For instance, my view uses one serializer for GET, and another for POST/PUT:

def get_serializer_class(self):
return WriteSerializer if request.method in ['POST', 'PUT'] else ReadSerializer