aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Ordoquy2014-05-01 01:27:51 +0200
committerXavier Ordoquy2014-05-01 01:27:51 +0200
commitc9e6f31166ebccc5c3bf2f27e12a6d6c87f5cf22 (patch)
tree81343ac3000b5ecc46e2849fc36cc32d4d08a325
parent38362bb43a19c287319ccfe0538ce5524f09c633 (diff)
downloaddjango-rest-framework-c9e6f31166ebccc5c3bf2f27e12a6d6c87f5cf22.tar.bz2
Fixed new default for many
-rw-r--r--rest_framework/tests/test_serializer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/test_serializer.py b/rest_framework/tests/test_serializer.py
index 31bd1082..44ef8a95 100644
--- a/rest_framework/tests/test_serializer.py
+++ b/rest_framework/tests/test_serializer.py
@@ -661,7 +661,7 @@ class ModelValidationTests(TestCase):
second_serializer = AlbumsSerializer(data={'title': 'a'})
self.assertFalse(second_serializer.is_valid())
self.assertEqual(second_serializer.errors, {'title': ['Album with this Title already exists.'],})
- third_serializer = AlbumsSerializer(data=[{'title': 'b', 'ref': '1'}, {'title': 'c'}])
+ third_serializer = AlbumsSerializer(data=[{'title': 'b', 'ref': '1'}, {'title': 'c'}], many=True)
self.assertFalse(third_serializer.is_valid())
self.assertEqual(third_serializer.errors, [{'ref': ['Album with this Ref already exists.']}, {}])