Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(2)  |  Derive(0)  |  Import(4)

src/d/j/django-pgfields-1.4.3/django_pg/models/query.py   django-pgfields(Download)
if gis_backend:
    from django.contrib.gis.db.models import query as gis_query
    from django_pg.models.sql.query import Query, GeoQuery
    from django_pg.models.sql.where import WhereNode, GeoWhereNode
else:
    from django_pg.models.sql.query import Query
    def __init__(self, model=None, query=None, using=None):
        # Preserve all of the functionality of QuerySet, but
        # use our Query subclass instead of the Django stock one.
        query = query or Query(model, where=WhereNode)
        super(QuerySet, self).__init__(model=model, query=query, using=using)

src/d/j/django-pgfields-HEAD/django_pg/models/query.py   django-pgfields(Download)
if gis_backend:
    from django.contrib.gis.db.models import query as gis_query
    from django_pg.models.sql.query import Query, GeoQuery
    from django_pg.models.sql.where import WhereNode, GeoWhereNode
else:
    from django_pg.models.sql.query import Query
        # Preserve all of the functionality of QuerySet, but
        # use our Query subclass instead of the Django stock one.
        query = query or Query(model, where=WhereNode)
        super(QuerySet, self).__init__(model=model, query=query, using=using,
                                       **kwargs)