Commits

Waldemar Kornewald  committed aa722c0

updated base backend to latest Django-nonrel version

  • Participants
  • Parent commits 2192113

Comments (0)

Files changed (1)

File djangotoolbox/db/basecompiler.py

         # not necessary with emulated negation handling code
         result = []
         for child in children:
-            if isinstance(child, Node) and child.negated and \
-                    len(child.children) == 1 and \
-                    isinstance(child.children[0], tuple):
-                node, lookup_type, annotation, value = child.children[0]
-                if lookup_type == 'isnull' and value == True and node.field is None:
+            if isinstance(child, tuple):
+                constraint = child[0]
+                lookup_type = child[1]
+                if lookup_type == 'isnull' and constraint.field is None:
                     continue
             result.append(child)
         return result