Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
67ac0486
Commit
67ac0486
authored
Mar 31, 2016
by
Xavier Ordoquy
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4006 from mochawich/patch-1
Reorder initializing the view
parents
6b1125a2
03270431
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
rest_framework/views.py
+5
-5
No files found.
rest_framework/views.py
View file @
67ac0486
...
...
@@ -372,11 +372,6 @@ class APIView(View):
"""
self
.
format_kwarg
=
self
.
get_format_suffix
(
**
kwargs
)
# Ensure that the incoming request is permitted
self
.
perform_authentication
(
request
)
self
.
check_permissions
(
request
)
self
.
check_throttles
(
request
)
# Perform content negotiation and store the accepted info on the request
neg
=
self
.
perform_content_negotiation
(
request
)
request
.
accepted_renderer
,
request
.
accepted_media_type
=
neg
...
...
@@ -385,6 +380,11 @@ class APIView(View):
version
,
scheme
=
self
.
determine_version
(
request
,
*
args
,
**
kwargs
)
request
.
version
,
request
.
versioning_scheme
=
version
,
scheme
# Ensure that the incoming request is permitted
self
.
perform_authentication
(
request
)
self
.
check_permissions
(
request
)
self
.
check_throttles
(
request
)
def
finalize_response
(
self
,
request
,
response
,
*
args
,
**
kwargs
):
"""
Returns the final response object.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment