forked from django/django
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #25792 -- Renamed JsonResponse to JSONResponse
Changed references to JsonResponse throughout the django project. Added docs for deprecating JsonResponse. Added test for deprecation warning.
- Loading branch information
Showing
12 changed files
with
80 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
HttpResponseBadRequest, HttpResponseForbidden, HttpResponseGone, | ||
HttpResponseNotAllowed, HttpResponseNotFound, HttpResponseNotModified, | ||
HttpResponsePermanentRedirect, HttpResponseRedirect, | ||
HttpResponseServerError, JsonResponse, StreamingHttpResponse, | ||
HttpResponseServerError, JsonResponse, JSONResponse, StreamingHttpResponse, | ||
) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
danifus
Author
Owner
|
||
from django.http.utils import conditional_content_removal | ||
|
||
|
@@ -18,6 +18,6 @@ | |
'HttpResponsePermanentRedirect', 'HttpResponseNotModified', | ||
'HttpResponseBadRequest', 'HttpResponseForbidden', 'HttpResponseNotFound', | ||
'HttpResponseNotAllowed', 'HttpResponseGone', 'HttpResponseServerError', | ||
'Http404', 'BadHeaderError', 'JsonResponse', 'FileResponse', | ||
'conditional_content_removal', | ||
'Http404', 'BadHeaderError', 'JsonResponse', 'JSONResponse', | ||
'FileResponse', 'conditional_content_removal', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@danifus Hi Dan, just wondering, why you didn't remove
JsonResponse
?