mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 10:03:57 +03:00
commit
4495ac466d
|
@ -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