aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/relations.py
diff options
context:
space:
mode:
authorTom Christie2014-09-25 11:40:32 +0100
committerTom Christie2014-09-25 11:40:32 +0100
commit64632da3718f501cb8174243385d38b547c2fefd (patch)
treecb1f7eba968fe61a302639008ba6c7e32678c329 /rest_framework/relations.py
parentb22c9602fa0f717b688fdb35e4f6f42c189af3f3 (diff)
downloaddjango-rest-framework-64632da3718f501cb8174243385d38b547c2fefd.tar.bz2
Clean up bind - no longer needs to be called multiple times in nested fields
Diffstat (limited to 'rest_framework/relations.py')
-rw-r--r--rest_framework/relations.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/rest_framework/relations.py b/rest_framework/relations.py
index 5aa1f8bd..b37a6fed 100644
--- a/rest_framework/relations.py
+++ b/rest_framework/relations.py
@@ -243,11 +243,6 @@ class ManyRelation(Field):
assert child_relation is not None, '`child_relation` is a required argument.'
super(ManyRelation, self).__init__(*args, **kwargs)
- def bind(self, field_name, parent, root):
- # ManyRelation needs to provide the current context to the child relation.
- super(ManyRelation, self).bind(field_name, parent, root)
- self.child_relation.bind(field_name, parent, root)
-
def to_internal_value(self, data):
return [
self.child_relation.to_internal_value(item)