def value_to_string(self, obj):
        statefield = self.to_python(self._get_val_from_obj(obj))
        return statefield.state.name
Convert a field value to a string.
dataset/ETHPy150Open rbarrois/django_xworkflows/django_xworkflows/models.py/StateField.value_to_string