agateblue / lifter

A generic query engine, inspired by Django ORM
ISC License
449 stars 16 forks source link

Create a soft-failing mode when querying fields that do not exist #29

Closed agateblue closed 7 years ago

agateblue commented 8 years ago

As reported on reddit recently, the current behaviour of crashing when querying a field that does not exists on all model is not always handy.

The soft mode could be enabled by default, catching any MissingAttribute error and continue, and disabled with something such as queryset.permissive(False).