                      else:
                          instance_attrs[param] = attr
  
                  try:
                      return reverse(self.view_callable[0], self.view.request, kwargs=instance_attrs)
                  except NoReverseMatch:
                      pass
          raise _SkipField
  
      @property
 
</s> remove                    pass 
 </s> add                     pass </s> remove except ImportError: # python < 2.7
 </s> add except ImportError:  # python < 2.7 </s> remove # reverse_lazy (Django 1.4 onwards)
try:
    from django.core.urlresolvers import reverse_lazy
except:
    from django.core.urlresolvers import reverse
    from django.utils.functional import lazy
    reverse_lazy = lazy(reverse, str)
 </s> add  </s> remove except ImportError: # python < 2.7
 </s> add except ImportError:  # python < 2.7 </s> remove         return Response(status.HTTP_201_CREATED, self.CONTENT, {'Location': reverse('stored-object', request, kwargs={'key':key})})
 </s> add         url = get_file_url(key, request)
        return Response(status.HTTP_201_CREATED, self.CONTENT, {'Location': url})
                    return reverse(self.view_callable[0],
                                   kwargs=instance_attrs,
                                   request=self.view.request)
                      else:
                          instance_attrs[param] = attr
  
                  try:
                    return reverse(self.view_callable[0],
                                   kwargs=instance_attrs,
                                   request=self.view.request)
                  except NoReverseMatch:
                      pass
          raise _SkipField
  
      @property
keep keep keep keep replace keep keep keep keep keep
 reverse takes request as a kwarg for compatibility with django's reverse 
djangorestframework/resources.py