              response_obj['fields'] = field_name_types
          return response_obj
  
  
  class ModelView(View):
      """
      A RESTful view that maps to a model in the database.
      """
      resource = resources.ModelResource
 
</s> remove 
        return self.render(response)
 </s> add         return self.final(request, response) </s> remove         # 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)

 </s> add 
    def final(self, request, response, *args, **kargs):
        """
        As initial, final can be overriden to add code that must be set after the render
        """
        # 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)
        return self.render(response)

              response_obj['fields'] = field_name_types
          return response_obj
  
    def final(self, request, response, *args, **kargs):
        """
        As initial, final can be overriden to add code that must be set after the render
        """
        # 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)
        return self.render(response)

  
  class ModelView(View):
      """
      A RESTful view that maps to a model in the database.
      """
      resource = resources.ModelResource
keep keep add keep keep keep keep keep keep
 Introduce a final methods in View class 
djangorestframework/views.py