def __init__(self, model=None, query=None, using=None): super(MapnikQuerySet, self).__init__(model=model, query=query, using=using) try: self.query = query or GeoQuery(self.model) except TypeError: # pre django 1.2 self.query = query or GeoQuery(self.model, connection)
def __init__(self, model=None, query=None): super(GeoQuerySet, self).__init__(model=model, query=query) self.query = query or GeoQuery(self.model, connection)
def __init__(self, model=None, query=None, using=None, hints=None): super(GeoQuerySet, self).__init__(model=model, query=query, using=using, hints=hints) self.query = query or GeoQuery(self.model)