<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def value_to_string(self, obj):
 """Convert a field value to a string. Returns the state name. """

        statefield = self.to_python(self.value_from_object(obj))
        return statefield.state.name