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

  • after
  • endpoints
    Type: Namespace
  • extra
  • extra_evaluated
  • form
    Type: Namespace
  • form_class
  • include
    Type: bool
  • iommi_style
    Type: str
  • member_class
  • model
  • rows
  • template

Defaults

  • endpoints__errors__func
    • iommi.query.default_endpoint__errors
  • form__attrs
    • {'data-iommi-errors': <function Query.<lambda> at 0x7f63c33b9b70>}