Skip to content

Instantly share code, notes, and snippets.

@dannon
Created January 22, 2015 16:11
Show Gist options
  • Save dannon/3a444e37adc85d073d3a to your computer and use it in GitHub Desktop.
Save dannon/3a444e37adc85d073d3a to your computer and use it in GitHub Desktop.
[yoplait@anvil:~/galaxy-central] hg diff -p
diff -r f6e5390c8300 lib/galaxy/managers/base.py
--- a/lib/galaxy/managers/base.py Wed Jan 21 18:22:58 2015 -0500
+++ b/lib/galaxy/managers/base.py Thu Jan 22 11:10:10 2015 -0500
@@ -162,7 +162,6 @@ class ModelManager( object ):
def __init__( self, app ):
self.app = app
- self.default_order_by = None
def _default_order_by( self ):
"""
@@ -232,10 +231,10 @@ class ModelManager( object ):
"""
Return the query after adding the order_by clauses.
- Use the manager's default_order_by if order_by is None.
+ Use the manager's _default_order_by if order_by is None.
"""
if order_by is None:
- return query.order_by( *self.default_order_by() )
+ return query.order_by( *self._default_order_by() )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment