It doesn't work in 6.1, even though it has the patch (around line 900 in orm.py). Apparently there is never anything in cls.__dict__.get('_constraints', []).
It doesn't work in 6.1, even though it has the patch (around line 900 in orm.py). _.get(' _constraints' , []).
Apparently there is never anything in cls.__dict_