aboutsummaryrefslogtreecommitdiffstats
path: root/examples/resourceexample/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resourceexample/views.py')
-rw-r--r--examples/resourceexample/views.py2
1 files changed, 1 insertions, 1 deletions
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):