def build_attrs(self, extra_attrs=None, **kwargs):
        self.attrs = self.widget.build_attrs(extra_attrs=None, **kwargs)
        return self.attrs
Helper function for building an attribute dictionary.
dataset/ETHPy150Open django/django/django/contrib/admin/widgets.py/RelatedFieldWidgetWrapper.build_attrs