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.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/resourceexample/views.py b/examples/resourceexample/views.py
index 8e7be302..41a3111c 100644
--- a/examples/resourceexample/views.py
+++ b/examples/resourceexample/views.py
@@ -16,9 +16,11 @@ class ExampleView(View):
Handle GET requests, returning a list of URLs pointing to
three other views.
"""
- urls = [reverse('another-example', request, kwargs={'num': num})
- for num in range(3)]
- return Response({"Some other resources": urls})
+ resource_urls = [reverse('another-example',
+ kwargs={'num': num},
+ request=request)
+ for num in range(3)]
+ return Response({"Some other resources": resource_urls})
class AnotherExampleView(View):