aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide
diff options
context:
space:
mode:
authorStephan Groß2012-11-27 22:30:13 -0800
committerStephan Groß2012-11-27 22:30:13 -0800
commit77fa98d83903850123137bcb6c92698ca56b36b3 (patch)
tree7100c5ef53677274b17c074af84783383df0bf65 /docs/api-guide
parent24baf6425b82316ddedf39d44d38e22f28850fd0 (diff)
parent80be571b2e1deebff247ce5dfc4a325f2e2df9ae (diff)
downloaddjango-rest-framework-77fa98d83903850123137bcb6c92698ca56b36b3.tar.bz2
Merge pull request #453 from yprez/docs_fix
api-guide/views.md - add imports to code example
Diffstat (limited to 'docs/api-guide')
-rw-r--r--docs/api-guide/views.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/api-guide/views.md b/docs/api-guide/views.md
index 5b072827..d1e42ec1 100644
--- a/docs/api-guide/views.md
+++ b/docs/api-guide/views.md
@@ -19,6 +19,10 @@ Using the `APIView` class is pretty much the same as using a regular `View` clas
For example:
+ from rest_framework.views import APIView
+ from rest_framework.response import Response
+ from rest_framework import authentication, permissions
+
class ListUsers(APIView):
"""
View to list all users in the system.