Query¶
Declare a query language. Example:
class CarQuery(Query): make = Variable.choice(choices=['Toyota', 'Volvo', 'Ford]) model = Variable() query_set = Car.objects.filter(CarQuery(request=request).to_q())
type variables: | list of Variable :type request: django.http.request.HttpRequest |
---|