1031 | | if final > 1 and lookup_type != 'isnull': |
1032 | | for alias in join_list: |
1033 | | if self.alias_map[alias] == self.LOUTER: |
1034 | | j_col = self.alias_map[alias][RHS_JOIN_COL] |
1035 | | entry = Node([(alias, j_col, None, 'isnull', True)]) |
1036 | | entry.negate() |
1037 | | self.where.add(entry, AND) |
1038 | | break |
| 1032 | if lookup_type != 'isnull': |
| 1033 | if final > 1: |
| 1034 | for alias in join_list: |
| 1035 | if self.alias_map[alias][JOIN_TYPE] == self.LOUTER: |
| 1036 | j_col = self.alias_map[alias][RHS_JOIN_COL] |
| 1037 | entry = Node([(alias, j_col, None, 'isnull', True)]) |
| 1038 | entry.negate() |
| 1039 | self.where.add(entry, AND) |
| 1040 | break |
| 1041 | else: |
| 1042 | entry = Node([(alias, col, field, 'isnull', True)]) |
| 1043 | entry.negate() |
| 1044 | self.where.add(entry, AND) |
| 1045 | |
| 1046 | |