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