Django

Code

Changeset 8829

Show
Ignore:
Timestamp:
09/01/08 19:20:10 (3 months ago)
Author:
mtredinnick
Message:

Get the join promotion code (a bit more) correct when constructing joins for ordering.

Yes, this really is a commit that fixes an oversight in a commit that fixed an
oversight. One day I'll get it right.

Files:

Legend:

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

    r8827 r8829  
    661661        must_promote = False 
    662662        for join in joins: 
    663             must_promote = self.promote_alias(join, must_promote) 
     663            if self.promote_alias(join, must_promote): 
     664                must_promote = True 
    664665 
    665666        # If we get to this point and the field is a relation to another model,