mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
FIX link
This commit is contained in:
parent
6ce60cd594
commit
be0a57b0f1
|
@ -352,7 +352,7 @@ Here's an example for an `.update()` method on our previous `UserSerializer` cla
|
||||||
|
|
||||||
Because the behavior of nested creates and updates can be ambiguous, and may require complex dependencies between related models, REST framework 3 requires you to always write these methods explicitly. The default `ModelSerializer` `.create()` and `.update()` methods do not include support for writable nested representations.
|
Because the behavior of nested creates and updates can be ambiguous, and may require complex dependencies between related models, REST framework 3 requires you to always write these methods explicitly. The default `ModelSerializer` `.create()` and `.update()` methods do not include support for writable nested representations.
|
||||||
|
|
||||||
There are however, third-party packages available such as [DRF Writable Nested][route-decorators] that support automatic writable nested representations.
|
There are however, third-party packages available such as [DRF Writable Nested][thirdparty-writable-nested] that support automatic writable nested representations.
|
||||||
|
|
||||||
#### Handling saving related instances in model manager classes
|
#### Handling saving related instances in model manager classes
|
||||||
|
|
||||||
|
@ -1173,6 +1173,7 @@ The [drf-writable-nested][drf-writable-nested] package provides writable nested
|
||||||
[relations]: relations.md
|
[relations]: relations.md
|
||||||
[model-managers]: https://docs.djangoproject.com/en/stable/topics/db/managers/
|
[model-managers]: https://docs.djangoproject.com/en/stable/topics/db/managers/
|
||||||
[encapsulation-blogpost]: http://www.dabapps.com/blog/django-models-and-encapsulation/
|
[encapsulation-blogpost]: http://www.dabapps.com/blog/django-models-and-encapsulation/
|
||||||
|
[thirdparty-writable-nested]: serializers.md#drf-writable-nested
|
||||||
[django-rest-marshmallow]: http://tomchristie.github.io/django-rest-marshmallow/
|
[django-rest-marshmallow]: http://tomchristie.github.io/django-rest-marshmallow/
|
||||||
[marshmallow]: https://marshmallow.readthedocs.io/en/latest/
|
[marshmallow]: https://marshmallow.readthedocs.io/en/latest/
|
||||||
[serpy]: https://github.com/clarkduvall/serpy
|
[serpy]: https://github.com/clarkduvall/serpy
|
||||||
|
|
Loading…
Reference in New Issue
Block a user