              instance = model(**all_kw_args)
          instance.save()
          headers = {}
          if hasattr(instance, 'get_absolute_url'):
              headers['Location'] = instance.get_absolute_url()
          return Response(status.HTTP_201_CREATED, instance, headers)
  
  
  class UpdateModelMixin(object):
      """
 
</s> remove         return Response(status.HTTP_201_CREATED, content, {'Location': reverse('stored-object', kwargs={'key':key})})
 </s> add         return Response(status.HTTP_201_CREATED, self.CONTENT, {'Location': reverse('stored-object', kwargs={'key':key})}) </s> remove             if content and isinstance(content, models.Model):
 </s> add             if data and isinstance(data, models.Model): </s> remove class StoredObject(Resource):
    """Represents a stored object.
    The object may be any picklable content."""
    allowed_methods = anon_allowed_methods = ('GET', 'PUT', 'DELETE')
 </s> add class StoredObject(BaseView):
    """
    Represents a stored object.
    The object may be any picklable content.
    """
            headers['Location'] = self.resource(self).url(instance)
              instance = model(**all_kw_args)
          instance.save()
          headers = {}
          if hasattr(instance, 'get_absolute_url'):
            headers['Location'] = self.resource(self).url(instance)
          return Response(status.HTTP_201_CREATED, instance, headers)
  
  
  class UpdateModelMixin(object):
      """
keep keep keep keep replace keep keep keep keep keep
 Fixing some of the last blocking issues 
djangorestframework/mixins.py