mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-13 01:32:34 +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
|
||||
==========================
|
||||
|
||||
1. Drop short status codes.
|
||||
2. Response to inherit from `HttpResponse`.
|
||||
1. Drop short status codes. [#126](https://github.com/tomchristie/django-rest-framework/issues/126)
|
||||
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.
|
||||
+ `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.
|
||||
4. `Resource.filter_response`, `Resource.validate_request` -> `Serializer.serialize`, `Deserializer.deserialize`
|
||||
+ `Serializer`, `Deserializer` will be decoupled from `Resource`.
|
||||
|
|
Loading…
Reference in New Issue
Block a user