'Make sure that a geo-value is of type (x, y)'

def validate(self, value):

    if (not isinstance(value, (list, tuple))):
        self.error('GeoPointField    can    only    accept    tuples    or    lists    of    (x,    y)')
    if (not (len(value) == 2)):
        self.error(('Value    (%s)    must    be    a    two-dimensional    point' % repr(value)))
    elif ((not isinstance(value[0], (float, int))) or (not isinstance(value[1], (float, int)))):
        self.error(('Both    values    (%s)    in    point    must    be    float    or    int' % repr(value)))
