aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/reverse.py
diff options
context:
space:
mode:
authorTom Christie2012-02-17 09:19:13 +0000
committerTom Christie2012-02-17 09:19:13 +0000
commitfbf76c87affc88f04bb0d0acaecc6af6442ba921 (patch)
tree5a75cbb061829694c4f714ae0e8413c584131739 /djangorestframework/tests/reverse.py
parent426493a78f3003fdba39053b6af23b93b312a777 (diff)
parentc04cb5145c4398cfac090ca7eef032296a04446f (diff)
downloaddjango-rest-framework-fbf76c87affc88f04bb0d0acaecc6af6442ba921.tar.bz2
Merge git://github.com/sebpiq/django-rest-framework into develop
Diffstat (limited to 'djangorestframework/tests/reverse.py')
-rw-r--r--djangorestframework/tests/reverse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/tests/reverse.py b/djangorestframework/tests/reverse.py
index 2d1ca79e..c49caca0 100644
--- a/djangorestframework/tests/reverse.py
+++ b/djangorestframework/tests/reverse.py
@@ -4,6 +4,7 @@ from django.test import TestCase
from django.utils import simplejson as json
from djangorestframework.views import View
+from djangorestframework.response import Response
class MockView(View):
@@ -11,7 +12,7 @@ class MockView(View):
permissions = ()
def get(self, request):
- return reverse('another')
+ return Response(reverse('another'))
urlpatterns = patterns('',
url(r'^$', MockView.as_view()),