Added prepare_value so that the field can be properly serialized outside
of a model context