aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlton Gibson2014-04-08 09:06:25 +0200
committerCarlton Gibson2014-04-08 09:06:25 +0200
commit4495ac466d5b3d4439138bd80f71fd33c922519e (patch)
tree6bfbcf7af2dd24c54d09e153c8c13708057c242a
parent60ac3d7a76c4132d97d7e8047e25be253018280e (diff)
parent2a1571b3bf36ff153af68401f7aefa0620f80807 (diff)
downloaddjango-rest-framework-4495ac466d5b3d4439138bd80f71fd33c922519e.tar.bz2
Merge pull request #1511 from maurodec/master
Fixed comment.
-rw-r--r--rest_framework/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index 68b95682..946a5954 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -164,7 +164,7 @@ class Field(object):
Called to set up a field prior to field_to_native or field_from_native.
parent - The parent serializer.
- model_field - The model field this field corresponds to, if one exists.
+ field_name - The name of the field being initialized.
"""
self.parent = parent
self.root = parent.root or parent