Django

Code

Changeset 8783

Show
Ignore:
Timestamp:
08/31/08 21:43:55 (3 months ago)
Author:
mtredinnick
Message:

Fixed #7512 -- Fixed an oversight when I first fixed ordering on nullable
foreign keys (r7761). Thanks to George Vilches for the test case here.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/models/sql/query.py

    r8644 r8783  
    659659 
    660660        # Must use left outer joins for nullable fields. 
     661        must_promote = False 
    661662        for join in joins: 
    662             self.promote_alias(join
     663            must_promote = self.promote_alias(join, must_promote
    663664 
    664665        # If we get to this point and the field is a relation to another model,