tomchristie/django-rest-framework — pull request #1076 by edmondwong (2013-08-31 01:20:22+00:00)
Title: Allow OPTIONS to retrieve PUT field metadata on empty objects

This allows OPTIONS to return the PUT endpoint's object serializer metadata when the object hasn't been created yet.

When self.get_object() raises a Http404, the behavior should not be the same as a PermissionDenied, which is to not fill in the serializer metadata. A PUT for a new resource url should be able to use OPTIONS to examine the endpoint's metadata prior to executing the PUT.