agateblue / lifter

A generic query engine, inspired by Django ORM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

agateblue opened this issue · comments

commented

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).