mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 19:43:59 +03:00
Fixed comment.
This commit is contained in:
parent
60ac3d7a76
commit
2a1571b3bf
|
@ -164,7 +164,7 @@ class Field(object):
|
||||||
Called to set up a field prior to field_to_native or field_from_native.
|
Called to set up a field prior to field_to_native or field_from_native.
|
||||||
|
|
||||||
parent - The parent serializer.
|
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.parent = parent
|
||||||
self.root = parent.root or parent
|
self.root = parent.root or parent
|
||||||
|
|
Loading…
Reference in New Issue
Block a user