mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
Note 'request.session' as available on requests.
This commit is contained in:
parent
b54cbd292c
commit
ea6eee304c
|
@ -117,7 +117,7 @@ For more information see the [browser enhancements documentation].
|
||||||
|
|
||||||
# Standard HttpRequest attributes
|
# Standard HttpRequest attributes
|
||||||
|
|
||||||
As REST framework's `Request` extends Django's `HttpRequest`, all the other standard attributes and methods are also available. For example the `request.META` dictionary is available as normal.
|
As REST framework's `Request` extends Django's `HttpRequest`, all the other standard attributes and methods are also available. For example the `request.META` and `request.session` dictionaries are available as normal.
|
||||||
|
|
||||||
Note that due to implementation reasons the `Request` class does not inherit from `HttpRequest` class, but instead extends the class using composition.
|
Note that due to implementation reasons the `Request` class does not inherit from `HttpRequest` class, but instead extends the class using composition.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user