1. Daniel Miller
  2. sqlalchemy

Commits

Mike Bayer  committed 2509bd2

help test with an order by

  • Participants
  • Parent commits 93ecec3
  • Branches default

Comments (0)

Files changed (1)

File test/orm/inheritance/test_query.py

View file
  • Ignore whitespace
     def setup_mappers(cls):
         mapper(Parent, parent, polymorphic_on=parent.c.type, polymorphic_identity='b')
         mapper(Subparent, subparent, inherits=Parent, polymorphic_identity='s', properties={
-            'children':relationship(Sub)
+            'children':relationship(Sub, order_by=base.c.id)
         })
         mapper(Base, base, polymorphic_on=base.c.type, polymorphic_identity='b')
         mapper(Sub, sub, inherits=Base, polymorphic_identity='s')