<s> from rest_framework import exceptions <EOL> from rest_framework . filters import BaseFilterBackend <EOL> from spillway import forms <EOL> class FormFilterBackend ( BaseFilterBackend ) : <EOL> queryset_form = None <EOL> def filter_queryset ( self , request , queryset , view ) : <EOL> form = self . queryset_form . from_request ( request , queryset , view ) <EOL> try : <EOL> return form . query ( ) <EOL> except ValueError : <EOL> raise exceptions . ParseError ( form . errors ) <EOL> class GeoQuerySetFilter ( FormFilterBackend ) : <EOL> """<STR_LIT>""" <EOL> queryset_form = forms . GeometryQueryForm <EOL> class SpatialLookupFilter ( FormFilterBackend ) : <EOL> """<STR_LIT>""" <EOL> queryset_form = forms . SpatialQueryForm <EOL> class TileFilter ( FormFilterBackend ) : <EOL> queryset_form = forms . VectorTileForm </s>
