aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/relations.py
diff options
context:
space:
mode:
authorTom Christie2013-02-07 09:14:58 +0000
committerTom Christie2013-02-07 09:14:58 +0000
commit5813a0951221f68591ade2039964531e754ca262 (patch)
tree64c991caa7e65dd94e397a9a7e478aa46a4ba290 /rest_framework/tests/relations.py
parentc18fb0d6953940f63cd8747a5ce543d31999996f (diff)
downloaddjango-rest-framework-5813a0951221f68591ade2039964531e754ca262.tar.bz2
Use new many=True relations style.
Diffstat (limited to 'rest_framework/tests/relations.py')
-rw-r--r--rest_framework/tests/relations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/relations.py b/rest_framework/tests/relations.py
index 5fc32038..cbf93c65 100644
--- a/rest_framework/tests/relations.py
+++ b/rest_framework/tests/relations.py
@@ -40,7 +40,7 @@ class TestManyRelateMixin(TestCase):
https://github.com/tomchristie/django-rest-framework/pull/632
'''
- field = serializers.ManyRelatedField(read_only=False)
+ field = serializers.RelatedField(many=True, read_only=False)
into = {}
field.field_from_native({}, None, 'field_name', into)