Fix: all where nodes do not have children. In some circumstances, Django ORM generates Constraint nodes that have their 'field' attribute set to None. It looks like it is related to custom through model in m2m relationships.
Merge branch 'master' into nomadic