diff --git a/djangorestframework/tests/reverse.py b/djangorestframework/tests/reverse.py index 0b74ab06d..02dbe9db4 100644 --- a/djangorestframework/tests/reverse.py +++ b/djangorestframework/tests/reverse.py @@ -2,7 +2,7 @@ from django.conf.urls.defaults import patterns, url from django.test import TestCase from django.utils import simplejson as json -from djangorestframework.urlresolvers import reverse +from djangorestframework.utils import reverse from djangorestframework.views import View diff --git a/djangorestframework/urlresolvers.py b/djangorestframework/urlresolvers.py deleted file mode 100644 index 0fd88ec1a..000000000 --- a/djangorestframework/urlresolvers.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.core.urlresolvers import reverse - -def reverse(viewname, urlconf=None, args=None, kwargs=None, prefix=None, current_app=None): - raise NotImplementedError diff --git a/djangorestframework/utils/__init__.py b/djangorestframework/utils/__init__.py index 634d0d68c..ba2f6e05b 100644 --- a/djangorestframework/utils/__init__.py +++ b/djangorestframework/utils/__init__.py @@ -1,6 +1,6 @@ from django.utils.encoding import smart_unicode from django.utils.xmlutils import SimplerXMLGenerator -from django.core.urlresolvers import resolve +from django.core.urlresolvers import resolve, reverse from django.conf import settings from djangorestframework.compat import StringIO @@ -173,3 +173,6 @@ class XMLRenderer(): def dict2xml(input): return XMLRenderer().dict2xml(input) + +def reverse(viewname, urlconf=None, args=None, kwargs=None, prefix=None, current_app=None): + raise NotImplementedError