Query#

Base class: Part

Declare a query language. Example:

class CarQuery(Query):
    make = Filter.choice(choices=['Toyota', 'Volvo', 'Ford'])
    model = Filter()

query_set = Car.objects.filter(
    CarQuery().bind(request=request).get_q()
)

Refinable members#

  • advanced

    Type: Namespace

  • after

    Type: Union[int, str]

  • assets

    Type: Namespace

  • auto

    Type: Namespace

  • endpoints

    Type: Namespace

  • extra

    Type: Dict[str, Any]

  • extra_evaluated

    Type: Dict[str, Any]

  • filter

  • filters

    Type: Namespace

  • form

    Type: Namespace

  • form_class

  • form_container

    Type: Fragment

  • include

    Type: bool

  • iommi_style

    Type: str

  • member_class

  • model

    Type: Type[django.db.models.base.Model]

  • postprocess

  • rows

  • template

    Type: Union[str, iommi._web_compat.Template]