mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 11:04:02 +03:00
Remove the old reference to JSONResponse
This commit is contained in:
parent
a73d3c309f
commit
adaf97a739
|
@ -33,9 +33,7 @@ The wrappers also provide behaviour such as returning `405 Method Not Allowed` r
|
||||||
|
|
||||||
## Pulling it all together
|
## Pulling it all together
|
||||||
|
|
||||||
Okay, let's go ahead and start using these new components to write a few views.
|
Okay, let's go ahead and start using these new components to refactor our views slightly.
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
from rest_framework import status
|
from rest_framework import status
|
||||||
from rest_framework.decorators import api_view
|
from rest_framework.decorators import api_view
|
||||||
|
|
Loading…
Reference in New Issue
Block a user