Return value from object converted to string properly

def value_to_string(self, obj):
        """Return value from object converted to string properly"""
        value = getattr(obj, self.attname)
        return self.get_prep_value(value)