@@ -342,58 +342,6 @@ def filter_queryset(self, request, queryset, view):
342342 value
343343 )
344344
345- # `geo_distance_range` `range` query lookup
346- elif options ['lookup' ] == LOOKUP_FILTER_GEO_DISTANCE_RANGE :
347- queryset = self .apply_query_geo_distance_range (
348- queryset ,
349- options ,
350- value
351- )
352-
353- # `geo_distance_range` `gt` query lookup
354- elif options ['lookup' ] in (
355- LOOKUP_FILTER_GEO_DISTANCE_GT ,
356- LOOKUP_FILTER_GEO_DISTANCE_FROM
357- ):
358- queryset = self .apply_query_geo_distance_gt (
359- queryset ,
360- options ,
361- value
362- )
363-
364- # `geo_distance_range` `gte` query lookup
365- elif options ['lookup' ] in (
366- LOOKUP_FILTER_GEO_DISTANCE_GTE ,
367- LOOKUP_FILTER_GEO_DISTANCE_INCLUDE_LOWER
368- ):
369- queryset = self .apply_query_geo_distance_gte (
370- queryset ,
371- options ,
372- value
373- )
374-
375- # `geo_distance_range` `lt` query lookup
376- elif options ['lookup' ] in (
377- LOOKUP_FILTER_GEO_DISTANCE_LT ,
378- LOOKUP_FILTER_GEO_DISTANCE_TO
379- ):
380- queryset = self .apply_query_geo_distance_lt (
381- queryset ,
382- options ,
383- value
384- )
385-
386- # `geo_distance_range` `lte` query lookup
387- elif options ['lookup' ] in (
388- LOOKUP_FILTER_GEO_DISTANCE_LTE ,
389- LOOKUP_FILTER_GEO_DISTANCE_INCLUDE_UPPER
390- ):
391- queryset = self .apply_query_geo_distance_lte (
392- queryset ,
393- options ,
394- value
395- )
396-
397345 # `geo_polygon` query lookup
398346 elif options ['lookup' ] == LOOKUP_FILTER_GEO_POLYGON :
399347 queryset = self .apply_query_geo_polygon (
0 commit comments