mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Note on turning off implicit many behavior. Refs #564.
This commit is contained in:
parent
4788c87b76
commit
691a8f682d
|
@ -71,6 +71,8 @@ This more explicit behavior on serializing and deserializing data [makes integra
|
|||
|
||||
The implicit to-many behavior on serializers, and the `ManyRelatedField` style classes will continue to function, but will raise a `PendingDeprecationWarning`, which can be made visible using the `-Wd` flag.
|
||||
|
||||
**Note**: If you need to forcibly turn off the implict "`many=True` for `__iter__` objects" behavior, you can now do so by specifying `many=False`. This will become the default (instead of the current default of `None`) once the deprecation of the implicit behavior is finalised in version 2.4.
|
||||
|
||||
### Cleaner optional relationships
|
||||
|
||||
Serializer relationships for nullable Foreign Keys will change from using the current `null=True` flag, to instead using `required=False`.
|
||||
|
|
Loading…
Reference in New Issue
Block a user