def geo_field(queryset):
    # Try Django 1.8 syntax first, then fall back to 1.7 and below.
    try:
        return queryset._geo_field()
    except __HOLE__:
        return queryset.query._geo_field()
dataset/ETHPy150Open bkg/django-spillway/spillway/query.py/geo_field