def set_value_field(self, model, field_name):
        fields = fields_for_model(model, fields=[field_name])
        self.fields['value'] = fields[field_name]
Adds a ``value`` field to this form that uses the appropriate formfield for the named target
dataset/ETHPy150Open pivotal-energy-solutions/django-datatable-view/datatableview/forms.py/XEditableUpdateForm.set_value_field