def get_prep_value(self, value):
        if not value:
            return None

        return text_type(self.to_python(value))
 def to_representation(self, value):
     if value is None:
         return value
     return text_type(value)