mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Created Writable Nested Serializers (markdown)
parent
bb15e026b9
commit
bf45a297c2
6
Writable-Nested-Serializers.md
Normal file
6
Writable-Nested-Serializers.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
Ongoing discussion questions/answers for the writable nested serializers:
|
||||
|
||||
* Should we let nested models be disassociated/orphaned (FK set to null) vs. outright deletion? Outright deletion seems like the more common use case. If I have an album with tracks, I probably want to delete the actual track model not just orphan it.
|
||||
|
||||
* Is the `_delete` keyword for deletion the best method? Setting a nested model field to `None` might be nicer in the one-to-one case, but doesn't translate well to one-to-many.
|
||||
|
Loading…
Reference in New Issue
Block a user