AttributeError when combining lazy=False and order_by=Some.class_attribute
Issue #939
resolved
The attached test case results in:
AttributeError: 'InstrumentedAttribute' object has no attribute '_clone'
This happens as a result of combining {{{lazy=False}}} and {{{order_by=Address.email}}} on the defined relation.
The following work-arounds have been found, each one avoiding the problem: * {{{lazy != False}}} * {{{order_by == addresses_table.c.email}}} * {{{order_by == asc(Address.email)}}}
Comments (3)
-
repo owner -
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.4.xx (automated comment)
- Log in to comment
Sorry, missed a whole bunch of tickets at some point. This is another bug that's only in 0.4, works in 0.5. Setting for 0.4 series.