Commits

Mike Bayer committed 89d2368

a comment indicating why we can't raise an error for relation(Foo, uselist=False, order_by=something)

  • Participants
  • Parent commits 4166208

Comments (0)

Files changed (1)

File test/orm/unitofwork.py

                  keyword=relation(mapper(Keyword, keywords, non_primary=True),
                                   lazy=False,
                                   uselist=False,
-                                  order_by=keywords.c.name)))
+                                  order_by=keywords.c.name      # note here is a valid place where order_by can be used
+                                  )))                           # on a scalar relation(); to determine eager ordering of
+                                                                # the parent object within its collection.
 
         mapper(Item, items, properties=dict(
             keywords=relation(IKAssociation, lazy=False)))