sqlalchemy-bot
                                            sqlalchemy-bot
                                        
                                    **Marc Schlaich ([@schlamar](https://github.com/schlamar)) wrote:** Oh no. The solution from above does not work predictably in the following case: - Replace the first existing child with a new one Sometimes the...
**Marc Schlaich ([@schlamar](https://github.com/schlamar)) wrote:** Looks like resetting all order_by properties of revived objects does the trick: def get_order_by_properties(model, relation_name): relation = getattr(model, relation_name) if relation.property.order_by: return [for c in relation.property.order_by](c.name)...
**Marc Schlaich ([@schlamar](https://github.com/schlamar)) wrote:** Another update: there are some issues with association proxy handling and doing flush when the object is not yet fully created (similar to #2809). So here...
**Marc Schlaich ([@schlamar](https://github.com/schlamar)) wrote:** Ok, I definitely should have read the warning in http://docs.sqlalchemy.org/en/rel_0_8/orm/extensions/orderinglist.html. Disabling the unique constraints right now. The above solution still have some issues.
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** hi can you please attach an actual code example of what it is you're trying to do ? thanks. note that this ticket involves specifically models...
**Marc Schlaich ([@schlamar](https://github.com/schlamar)) wrote:** Just forget it :) I had unique constraints on my ordering column which is totally non-sense and which I should have realized even before reading the...
**Anonymous wrote:** (original author: joshma)
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** here's a test that illustrates the feature working against the primary key, a change to the patch coming will handle this: from sqlalchemy import create_engine from...
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** updated patch
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** this so far isn't hitting the same level of urgency as a lot of other things in 1.0 so moving it out for the moment.