I've got a queryset within a function. In some cases, I want to filter by a specific model.
cars = Car.objects.filter(model='Toyota')
In other cases, I don't want to filter by this field at all. Eg. (Syntax is wrong, but it demonstrates what I'm after)
cars = Car.objects.filter(model=all)
How do I include a field within a queryset as shown above, but prevent it from limiting the results?
Thanks!