Merge pull request #7061 from b0uh/doc-remove-old-ref

[Doc] Remove the old reference to `JSONResponse`
This commit is contained in:
Xavier Ordoquy 2019-11-20 14:29:04 +01:00 committed by GitHub
commit 39876e6607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,9 +33,7 @@ The wrappers also provide behaviour such as returning `405 Method Not Allowed` r
## Pulling it all together
Okay, let's go ahead and start using these new components to write a few views.
We don't need our `JSONResponse` class in `views.py` any more, so go ahead and delete that. Once that's done we can start refactoring our views slightly.
Okay, let's go ahead and start using these new components to refactor our views slightly.
from rest_framework import status
from rest_framework.decorators import api_view