code: def filter_geometry(queryset, **filters):
      
      fieldname = geo_field(queryset).name
      query = {'%s__%s' % (fieldname, k): v for k, v in filters.items()}
      return queryset.filter(**query)
docs: Helper function for spatial lookups filters.
  
      Provide spatial lookup types as keywords without underscores instead of the
      usual "geometryfield__lookuptype" format.