Ticket #11052: 11052.promote_alias_lhs.diff
File 11052.promote_alias_lhs.diff, 763 bytes (added by , 15 years ago) |
---|
-
django/db/models/sql/query.py
1074 1074 1075 1075 Returns True if the join was promoted. 1076 1076 """ 1077 if ((unconditional or self.alias_map[alias][NULLABLE]) and 1077 nullable = self.alias_map[alias][NULLABLE] 1078 lhs_alias = self.alias_map[alias][LHS_ALIAS] 1079 if lhs_alias: 1080 nullable = nullable or self.alias_map[lhs_alias][NULLABLE] 1081 if ((unconditional or nullable) and 1078 1082 self.alias_map[alias][JOIN_TYPE] != self.LOUTER): 1079 1083 data = list(self.alias_map[alias]) 1080 1084 data[JOIN_TYPE] = self.LOUTER