aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Prezument2012-11-27 11:23:40 +0200
committerYuri Prezument2012-11-27 11:42:25 +0200
commite8a41322fbf96866c70ceb6b188894e02e7718f4 (patch)
tree54956fef2d2657f1c5bf6aba89b18dd5a4c34116
parentfd89bca35f065cd3917fffc79b59927460a88a3a (diff)
downloaddjango-rest-framework-e8a41322fbf96866c70ceb6b188894e02e7718f4.tar.bz2
api-guide/views.md - add imports to code example
* It wasn't clear where `Response` should be imported from.
-rw-r--r--docs/api-guide/views.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/api-guide/views.md b/docs/api-guide/views.md
index 5b072827..6cef1cd0 100644
--- a/docs/api-guide/views.md
+++ b/docs/api-guide/views.md
@@ -19,6 +19,9 @@ Using the `APIView` class is pretty much the same as using a regular `View` clas
For example:
+ from rest_framework.views import APIView, Response
+ from rest_framework import authentication, permissions
+
class ListUsers(APIView):
"""
View to list all users in the system.