mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-13 09:42:27 +03:00
Updated Getting to 1.0 (markdown)
parent
8a9f6883ca
commit
c177eff818
|
@ -9,11 +9,11 @@ a lot of the hard work has been done, but there's still a little way to go befor
|
||||||
Stuff that needs to change
|
Stuff that needs to change
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
1. Drop short status codes.
|
1. Drop short status codes. [#126](https://github.com/tomchristie/django-rest-framework/issues/126)
|
||||||
2. Response to inherit from `HttpResponse`.
|
2. Response to inherit from `HttpResponse`. [#127](https://github.com/tomchristie/django-rest-framework/issues/127)
|
||||||
+ Becomes a type of standard Django Template Response, with `.render()` method.
|
+ 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.
|
+ `add_header()` dropped from `View` - set headers on the response as with standard Django.
|
||||||
3. Request to extend from `HttpRequest`.
|
3. Request to extend from `HttpRequest`. [#128](https://github.com/tomchristie/django-rest-framework/issues/128)
|
||||||
+ `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`
|
4. `Resource.filter_response`, `Resource.validate_request` -> `Serializer.serialize`, `Deserializer.deserialize`
|
||||||
+ `Serializer`, `Deserializer` will be decoupled from `Resource`.
|
+ `Serializer`, `Deserializer` will be decoupled from `Resource`.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user