aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests
diff options
context:
space:
mode:
authorMark Aaron Shirley2013-01-16 16:03:59 -0800
committerMark Aaron Shirley2013-01-16 16:04:20 -0800
commit221f7326c7db7b6fa1a9ba2f0181ac075e3b482c (patch)
tree18ddf4611639aae33b72ffd7952f9692ec78bf6f /rest_framework/tests
parent34e14b01e402a2b2bcaf57aab76397757e260fd6 (diff)
downloaddjango-rest-framework-221f7326c7db7b6fa1a9ba2f0181ac075e3b482c.tar.bz2
Use None to delete nested object as opposed to _delete flag
Diffstat (limited to 'rest_framework/tests')
-rw-r--r--rest_framework/tests/nesting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/nesting.py b/rest_framework/tests/nesting.py
index 10d5db99..e4e32667 100644
--- a/rest_framework/tests/nesting.py
+++ b/rest_framework/tests/nesting.py
@@ -106,7 +106,7 @@ class NestedOneToOneTests(TestCase):
self.assertEquals(serializer.data, expected)
def test_one_to_one_delete(self):
- data = {'id': 3, 'name': u'target-3', 'target_source': {'_delete': True, 'id': 3, 'name': u'target-source-3', 'source': {'id': 3, 'name': u'source-3'}}}
+ data = {'id': 3, 'name': u'target-3', 'target_source': None}
instance = OneToOneTarget.objects.get(pk=3)
serializer = OneToOneTargetSerializer(instance, data=data)
self.assertTrue(serializer.is_valid())