Filtering in the API

class vng_api_common.filters.URLModelChoiceField(*args, **kwargs)
to_python(value: str)

Return a string.

widget

alias of URLInput

class vng_api_common.filters.URLModelChoiceFilter(*args, **kwargs)
field_class

alias of URLModelChoiceField

class vng_api_common.filters.WildcardFilter(*args, **kwargs)

Filters the queryset based on a string and optionally allows wildcards in the query parameter.

class vng_api_common.filtersets.FilterSet(data=None, queryset=None, *, request=None, prefix=None)

Allow foreign key fields to be filtered on resource URL.