mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-03 10:45:51 +03:00
api-guide/views.md - add imports to code example
* It wasn't clear where `Response` should be imported from.
This commit is contained in:
parent
fd89bca35f
commit
e8a41322fb
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user