From 2b59df004a5bb7449aa4c07277ac846c330a79f7 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 23 Feb 2012 08:58:10 +0000 Subject: reverse takes request as a kwarg for compatibility with django's reverse --- examples/resourceexample/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/resourceexample') diff --git a/examples/resourceexample/views.py b/examples/resourceexample/views.py index 1b5b8e9c..fcd0b273 100644 --- a/examples/resourceexample/views.py +++ b/examples/resourceexample/views.py @@ -15,7 +15,7 @@ class ExampleView(View): """ Handle GET requests, returning a list of URLs pointing to 3 other views. """ - return {"Some other resources": [reverse('another-example', request, kwargs={'num':num}) for num in range(3)]} + return {"Some other resources": [reverse('another-example', kwargs={'num':num}, request=request) for num in range(3)]} class AnotherExampleView(View): -- cgit v1.2.3