Skip to content

Instantly share code, notes, and snippets.

@rochacbruno
Created August 27, 2011 09:27
Show Gist options
  • Save rochacbruno/1175185 to your computer and use it in GitHub Desktop.
Save rochacbruno/1175185 to your computer and use it in GitHub Desktop.
#line 319
if current_orderby:
if current_orderby.op == current_orderby.db._adapter.INVERT:
self.current_field =current_orderby.first
self.next_orderby = self.current_field
self.current_class = 'orderby-desc'
else:
self.current_field = current_orderby
self.next_orderby = ~self.current_field
self.current_class = 'orderby-asc'
else:
self.current_field = current_orderby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment