Django

Code

Ticket #1535: query.diff

File query.diff, 448 bytes (added by mir@noris.de, 3 years ago)

Russel's patch from the ticket description

  • django/db/models/query.py

    old new  
    769769    if intermediate_table: 
    770770        joins[backend.quote_name(current_table)] = ( 
    771771            backend.quote_name(intermediate_table), 
    772             "INNER JOIN", 
     772            "LEFT OUTER JOIN", 
    773773            "%s.%s = %s.%s" % \ 
    774774                (backend.quote_name(table), 
    775775                backend.quote_name(current_opts.pk.column),