From bf45a297c2d75a1a12fe0c010c9131633e9b9197 Mon Sep 17 00:00:00 2001 From: maspwr Date: Thu, 10 Jan 2013 10:06:11 -0800 Subject: [PATCH] Created Writable Nested Serializers (markdown) --- Writable-Nested-Serializers.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Writable-Nested-Serializers.md diff --git a/Writable-Nested-Serializers.md b/Writable-Nested-Serializers.md new file mode 100644 index 0000000..d847089 --- /dev/null +++ b/Writable-Nested-Serializers.md @@ -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. +