Skip to content

Commit ad501d4

Browse files
authored
Added the django user model
So it is possible to copy paste the example and it will work out of the box.
1 parent 3eade5a commit ad501d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/views.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ REST framework provides an `APIView` class, which subclasses Django's `View` cla
1919
Using the `APIView` class is pretty much the same as using a regular `View` class, as usual, the incoming request is dispatched to an appropriate handler method such as `.get()` or `.post()`. Additionally, a number of attributes may be set on the class that control various aspects of the API policy.
2020

2121
For example:
22-
2322
from rest_framework.views import APIView
2423
from rest_framework.response import Response
2524
from rest_framework import authentication, permissions
25+
from django.contrib.auth.models import User
2626

2727
class ListUsers(APIView):
2828
"""

0 commit comments

Comments
 (0)