@property
    def id_for_label(self):
        widget = self.field.widget
        id_ = widget.attrs.get('id') or self.auto_id
        return widget.id_for_label(id_)
Wrapper around the field widget's `id_for_label` method.
dataset/ETHPy150Open django/django/django/forms/boundfield.py/BoundField.id_for_label