Permalink
Browse files

Merge pull request #453 from yprez/docs_fix

api-guide/views.md - add imports to code example
  • Loading branch information...
2 parents 24baf64 + 80be571 commit 77fa98d83903850123137bcb6c92698ca56b36b3 @minddust minddust committed Nov 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/api-guide/views.md
View
@@ -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.

0 comments on commit 77fa98d

Please sign in to comment.