mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-22 22:42:57 +03:00
Pass the request object to `reverse' in the reverse tests
This commit is contained in:
parent
4e11d7d041
commit
afb2c01cf3
|
@ -12,7 +12,7 @@ class MockView(View):
|
||||||
permissions = ()
|
permissions = ()
|
||||||
|
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
return Response(reverse('another'))
|
return Response(reverse('another', request))
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
url(r'^$', MockView.as_view()),
|
url(r'^$', MockView.as_view()),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user