def __init__(self, to, attribute, related_name=None, default=NOT_PROVIDED, null=False, blank=False, readonly=False, full=False, unique=False, help_text=None, use_in='all', verbose_name=None, full_list=True, full_detail=True):
        super(RelatedField, self).__init__(attribute=attribute, default=default, null=null, blank=blank, readonly=readonly, unique=unique, help_text=help_text, use_in=use_in, verbose_name=verbose_name)
        self.related_name = related_name
        self.to = to
        self._to_class = None
        self._rel_resources = {}
        self.full = full
        self.full_list = full_list if callable(full_list) else lambda bundle: full_list
        self.full_detail = full_detail if callable(full_detail) else lambda bundle: full_detail

        self.api_name = None
        self.resource_name = None
Builds the field and prepares it to access to related data.
dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/fields.py/RelatedField.__init__