Move the new `reverse' function from urlresolvers to utils

This commit is contained in:
Daniel Izquierdo 2012-02-20 18:05:12 +09:00
parent 12e34814e9
commit af4851f7a8
3 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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