mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Python 2.6.5+ required
This commit is contained in:
parent
de029561d0
commit
725741198b
|
@ -26,7 +26,7 @@ There is also a sandbox API you can use for testing purposes, [available here][s
|
||||||
|
|
||||||
# Requirements
|
# Requirements
|
||||||
|
|
||||||
* Python (2.6, 2.7, 3.2, 3.3)
|
* Python (2.6.5+, 2.7, 3.2, 3.3)
|
||||||
* Django (1.3, 1.4, 1.5)
|
* Django (1.3, 1.4, 1.5)
|
||||||
|
|
||||||
**Optional:**
|
**Optional:**
|
||||||
|
|
|
@ -27,7 +27,7 @@ There is also a sandbox API you can use for testing purposes, [available here][s
|
||||||
|
|
||||||
REST framework requires the following:
|
REST framework requires the following:
|
||||||
|
|
||||||
* Python (2.6, 2.7, 3.2, 3.3)
|
* Python (2.6.5+, 2.7, 3.2, 3.3)
|
||||||
* Django (1.3, 1.4, 1.5)
|
* Django (1.3, 1.4, 1.5)
|
||||||
|
|
||||||
The following packages are optional:
|
The following packages are optional:
|
||||||
|
|
|
@ -30,9 +30,11 @@ As of the 2.2 merge, we've also hit an impressive milestone. The number of comm
|
||||||
|
|
||||||
Our [mailing list][mailing-list] and #restframework IRC channel are also very active, and we've got a really impressive rate of development both on REST framework itself, and on third party packages such as the great [django-rest-framework-docs][django-rest-framework-docs] package from [Marc Gibbons][marcgibbons].
|
Our [mailing list][mailing-list] and #restframework IRC channel are also very active, and we've got a really impressive rate of development both on REST framework itself, and on third party packages such as the great [django-rest-framework-docs][django-rest-framework-docs] package from [Marc Gibbons][marcgibbons].
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## API changes
|
## API changes
|
||||||
|
|
||||||
The 2.2 release makes a few changes to the serializer fields API, in order to make it more consistent, simple, and easier to use.
|
The 2.2 release makes a few changes to the API, in order to make it more consistent, simple, and easier to use.
|
||||||
|
|
||||||
### Cleaner to-many related fields
|
### Cleaner to-many related fields
|
||||||
|
|
||||||
|
@ -136,7 +138,7 @@ If you're overriding the `BasePermission` class, the old-style signature will co
|
||||||
|
|
||||||
Note also that the usage of the internal APIs for permission checking on the `View` class has been cleaned up slightly, and is now documented and subject to the deprecation policy in all future versions.
|
Note also that the usage of the internal APIs for permission checking on the `View` class has been cleaned up slightly, and is now documented and subject to the deprecation policy in all future versions.
|
||||||
|
|
||||||
## More explicit hyperlink relations behavior
|
### More explicit hyperlink relations behavior
|
||||||
|
|
||||||
When using a serializer with a `HyperlinkedRelatedField` or `HyperlinkedIdentityField`, the hyperlinks would previously use absolute URLs if the serializer context included a `'request'` key, and fallback to using relative URLs otherwise. This could lead to non-obvious behavior, as it might not be clear why some serializers generated absolute URLs, and others do not.
|
When using a serializer with a `HyperlinkedRelatedField` or `HyperlinkedIdentityField`, the hyperlinks would previously use absolute URLs if the serializer context included a `'request'` key, and fallback to using relative URLs otherwise. This could lead to non-obvious behavior, as it might not be clear why some serializers generated absolute URLs, and others do not.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user