commit/galaxy-central: dan: Fix for ModelManager._apply_order_by when using default_order_by.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/9afcd69657ad/ Changeset: 9afcd69657ad User: dan Date: 2015-01-22 17:00:08+00:00 Summary: Fix for ModelManager._apply_order_by when using default_order_by. Affected #: 1 file diff -r d7b26e59a22e01288135f22bde90ca5259647837 -r 9afcd69657ad3f66c156038e4b32ce3cadfd49c0 lib/galaxy/managers/base.py --- a/lib/galaxy/managers/base.py +++ b/lib/galaxy/managers/base.py @@ -235,7 +235,8 @@ 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() ) + default_order_by = self.default_order_by or self._default_order_by() + return query.order_by( *default_order_by ) if isinstance( order_by, ( list, tuple ) ): return query.order_by( *order_by ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org