'Initializes the field name and parent for the field instance.
Called when a field is added to the parent serializer instance.'

def bind(self, field_name, parent):

    assert (self.source != field_name), (u"It    is    redundant    to    specify    `source='%s'`    on    field    '%s'    in    serializer    '%s',    because    it    is    the    same    as    the    field    name.    Remove    the    `source`    keyword    argument." % (field_name, self.__class__.__name__, parent.__class__.__name__))
    self.field_name = field_name
    self.parent = parent
    if (self.label is None):
        self.label = field_name.replace(u'_', u'    ').capitalize()
    if (self.source is None):
        self.source = field_name
    if (self.source == u'*'):
        self.source_attrs = []
    else:
        self.source_attrs = self.source.split(u'.')
