mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-13 17:52:36 +03:00
Improved formatting
parent
6b1836ad80
commit
8a9f6883ca
|
@ -14,7 +14,7 @@ Stuff that needs to change
|
|||
+ Becomes a type of standard Django Template Response, with `.render()` method.
|
||||
+ `add_header()` dropped from `View` - set headers on the response as with standard Django.
|
||||
3. Request to extend from `HttpRequest`.
|
||||
+ `self.DATA`, `self.FILES`, `self.auth`, `self.method` will become `request.DATA`, `request.FILES`, `request.method`... Regular attributes on the request (eg. `.META` etc.. will still be available)
|
||||
+ `self.DATA`, `self.FILES`, `self.auth`, `self.method` will become `request.DATA`, `request.FILES`, `request.method`... Regular attributes on the request (eg. `.META` etc.) will still be available.
|
||||
4. `Resource.filter_response`, `Resource.validate_request` -> `Serializer.serialize`, `Deserializer.deserialize`
|
||||
+ `Serializer`, `Deserializer` will be decoupled from `Resource`.
|
||||
+ Method names changed to `serialize`, `deserializer` - conceptually more obvious.
|
||||
|
|
Loading…
Reference in New Issue
Block a user