  from django.db import models
  
  from djangorestframework.response import ErrorResponse
  from djangorestframework.serializer import Serializer, _SkipField
  from djangorestframework.utils import as_tuple, reverse
  
  
  class BaseResource(Serializer):
      """
      Base class for all Resource classes, which simply defines the interface they provide.
 
</s> remove from djangorestframework.utils import reverse
 </s> add from djangorestframework.reverse import reverse </s> remove from djangorestframework.utils import reverse
 </s> add from djangorestframework.renderers import JSONRenderer
from djangorestframework.reverse import reverse </s> remove The :py:func:`~utils.reverse` function has the same behavior as :py:func:`django.core.urlresolvers.reverse` [1]_, except that it takes a request object and returns a fully qualified URL, using the request to determine the host and port::
 </s> add The :py:func:`~reverse.reverse` function has the same behavior as `django.core.urlresolvers.reverse`_, except that it takes a request object and returns a fully qualified URL, using the request to determine the host and port:: </s> remove class MockView(View):
    """Mock resource which simply returns a URL, so that we can ensure that reversed URLs are fully qualified"""
    permissions = ()
 </s> add class MyView(View):
    """
    Mock resource which simply returns a URL, so that we can ensure
    that reversed URLs are fully qualified.
    """
    renderers = (JSONRenderer, )
from djangorestframework.utils import as_tuple
  from django.db import models
  
  from djangorestframework.response import ErrorResponse
  from djangorestframework.serializer import Serializer, _SkipField
from djangorestframework.utils import as_tuple
  
  
  class BaseResource(Serializer):
      """
      Base class for all Resource classes, which simply defines the interface they provide.
keep keep keep keep replace keep keep keep keep keep
 reverse gets it's own module 
djangorestframework/resources.py