mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Set the args and kwargs before initializing the request.
Allows get_parser_context to function correctly. Signed-off-by: Ethan Fremen <ethan@matterport.com>
This commit is contained in:
parent
75e3cbc903
commit
ae2887ffc4
|
@ -304,10 +304,10 @@ class APIView(View):
|
|||
`.dispatch()` is pretty much the same as Django's regular dispatch,
|
||||
but with extra hooks for startup, finalize, and exception handling.
|
||||
"""
|
||||
request = self.initialize_request(request, *args, **kwargs)
|
||||
self.request = request
|
||||
self.args = args
|
||||
self.kwargs = kwargs
|
||||
request = self.initialize_request(request, *args, **kwargs)
|
||||
self.request = request
|
||||
self.headers = self.default_response_headers # deprecate?
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user