Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a legacy ordering_tuple --> order_by renaming in core.paginator

git-svn-id: http://code.djangoproject.com/svn/django/trunk@291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 05bdb8d64b7f539b7c6ffcd5d7c4ef9b3406c657 1 parent 2d3def9
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/paginator.py
View
4 django/core/paginator.py
@@ -60,8 +60,8 @@ def has_previous_page(self, page_number):
def _get_hits(self):
if self._hits is None:
order_args = copy(self.args)
- if order_args.has_key('ordering_tuple'):
- del order_args['ordering_tuple']
+ if order_args.has_key('order_by'):
+ del order_args['order_by']
if order_args.has_key('select_related'):
del order_args['select_related']
self._hits = getattr(self.module, self.count_method)(**order_args)
Please sign in to comment.
Something went wrong with that request. Please try again.