AttributeError when combining lazy=False and order_by=Some.class_attribute

Issue #939 resolved
Former user created an issue

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)

  1. Mike Bayer repo owner

    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.

  2. Log in to comment