id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 9415 QuerySet.order_by() should be chainable Joey Wilhelm nobody "I have a case where it would be very convenient to be able to call order_by() multiple times, appending to the order by clause with each successive call; i.e., {{{ #!python foo = Model.objects.all().order_by('field1') if bar: foo = foo.order_by('-field2') }}} Currently, the second call to order_by() explicitly overrides the previous order. This is not the behavior I would expect, as most (all?) other methods on a QuerySet are chainable. If it is decided that chaining will not be allowed with order_by(), then I think that this fact should at least be documented. Had I not been printing out my connection's queries when I ran into this problem, it may have taken me some time to figure out exactly what was going on." Uncategorized closed Database layer (models, ORM) 1.0 Normal wontfix Design decision needed 1 1 0 0 0 0