  
          except ErrorResponse, exc:
              response = exc.response
  
          # Always add these headers.
          #
          # TODO - this isn't actually the correct way to set the vary header,
          # also it's currently sub-optimal for HTTP caching - need to sort that out.
          response.headers['Allow'] = ', '.join(self.allowed_methods)
          response.headers['Vary'] = 'Authenticate, Accept'
  
          # merge with headers possibly set at some point in the view
          response.headers.update(self.headers)
  
          set_script_prefix(orig_prefix)
  
          return self.render(response)
  
      def options(self, request, *args, **kwargs):
 
</s> remove 
        return self.render(response)
 </s> add         return self.final(request, response)
  
          except ErrorResponse, exc:
              response = exc.response
  










          set_script_prefix(orig_prefix)
  
          return self.render(response)
  
      def options(self, request, *args, **kwargs):
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Introduce a final methods in View class 
djangorestframework/views.py