Ticket #16715: r16698.patch

File r16698.patch, 633 bytes (added by Sebastian Goll, 13 years ago)
  • django/db/models/sql/query.py

     
    686686
    687687        Returns True if the join was promoted by this call.
    688688        """
     689        lhs = self.alias_map[alias][LHS_ALIAS]
     690        if lhs and self.alias_map[lhs][JOIN_TYPE] == self.LOUTER:
     691            unconditional = True
    689692        if ((unconditional or self.alias_map[alias][NULLABLE]) and
    690693                self.alias_map[alias][JOIN_TYPE] != self.LOUTER):
    691694            data = list(self.alias_map[alias])
Back to Top