mirror of
https://github.com/django/django.git
synced 2025-11-03 05:13:23 +00:00
Removed request.REQUEST per deprecation timeline; refs #18659.
This commit is contained in:
parent
61ad1ea92b
commit
75f107b884
6 changed files with 6 additions and 74 deletions
|
|
@ -130,12 +130,11 @@ view; it'll apply response middleware to that
|
|||
|
||||
.. note::
|
||||
|
||||
Accessing :attr:`request.POST <django.http.HttpRequest.POST>` or
|
||||
:attr:`request.REQUEST <django.http.HttpRequest.REQUEST>` inside middleware
|
||||
from ``process_request`` or ``process_view`` will prevent any view running
|
||||
after the middleware from being able to :ref:`modify the upload handlers
|
||||
for the request <modifying_upload_handlers_on_the_fly>`, and should
|
||||
normally be avoided.
|
||||
Accessing :attr:`request.POST <django.http.HttpRequest.POST>` inside
|
||||
middleware from ``process_request`` or ``process_view`` will prevent any
|
||||
view running after the middleware from being able to :ref:`modify the
|
||||
upload handlers for the request <modifying_upload_handlers_on_the_fly>`,
|
||||
and should normally be avoided.
|
||||
|
||||
The :class:`~django.middleware.csrf.CsrfViewMiddleware` class can be
|
||||
considered an exception, as it provides the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue