Ticket #7315: 7315-fix.diff

File 7315-fix.diff, 568 bytes (added by Marinho Brandão, 16 years ago)
  • django/db/models/sql/query.py

     
    837837            # Not all tables need to be joined to anything. No join type
    838838            # means the later columns are ignored.
    839839            join_type = None
    840         elif promote or outer_if_first:
     840        elif promote or outer_if_first or nullable:
    841841            join_type = self.LOUTER
    842842        else:
    843843            join_type = self.INNER
Back to Top