def parse_form_field(value: str, field_type: str):
    'Parse strings into type according to field_type provided.'
    if (field_type == 'decimal'):
        return float(value)
    elif (field_type == 'integer'):
        return int(value)
    elif (field_type in ('datetime', 'date')):
        return dtparser(value).astimezone(timezone.utc)
    elif (field_type == 'geopoint'):
        (lat, lon, _, _) = value.split(' ')
        return {'lat': float(lat), 'lon': float(lon)}
    else:
        return value
Parse strings into type according to field_type provided.
def parse_form_field(value: str, field_type: str):
    
    if (field_type == 'decimal'):
        return float(value)
    elif (field_type == 'integer'):
        return int(value)
    elif (field_type in ('datetime', 'date')):
        return dtparser(value).astimezone(timezone.utc)
    elif (field_type == 'geopoint'):
        (lat, lon, _, _) = value.split(' ')
        return {'lat': float(lat), 'lon': float(lon)}
    else:
        return value