

def decompress(self, value):
    if isinstance(value, six.text_type):
        return value.rsplit(',')
    if value:
        return [value.latitude, value.longitude]
    return [None, None]

dataset/ETHPy150Open philippbosch/django-geoposition/geoposition/widgets.py GeopositionWidget.decompress/original