url_filter.backends.plain module¶
-
class
url_filter.backends.plain.
PlainFilterBackend
(queryset, context=None)[source]¶ Bases:
url_filter.backends.base.BaseFilterBackend
Filter backend for filtering plain Python iterables.
Warning
The filter backend does filtering inside a regular loop by comparing attributes of individual objects within iterable. As a result, this is NOT efficient method for filtering any large amounts of data. In those cases, it would probably be better to find more appropriate and efficient way to filter data.
-
enforce_same_models
= False¶
-
filter_by_specs
(queryset)[source]¶ Filter queryset by applying all filter specifications
The filtering is done by calling manually loping over all items in the iterable and comparing inner attributes with the filter specification.
-
get_model
()[source]¶ Get the model from the given queryset
Since there is no specific model for filtering Python lists, this simply returns
object
-
name
= u'plain'¶
-
supported_lookups
= set([u'gt', u'year', u'month', u'isnull', u'second', u'week_day', u'in', u'regex', u'gte', u'contains', u'lt', u'startswith', u'iendswith', u'icontains', u'iexact', u'iin', u'exact', u'day', u'minute', u'hour', u'iregex', u'endswith', u'range', u'istartswith', u'lte'])¶
-