From 05bdb8d64b7f539b7c6ffcd5d7c4ef9b3406c657 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 22 Jul 2005 05:11:37 +0000 Subject: [PATCH] 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 --- django/core/paginator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/paginator.py b/django/core/paginator.py index 6e6d4431b0..a4dbfebaae 100644 --- a/django/core/paginator.py +++ b/django/core/paginator.py @@ -60,8 +60,8 @@ class ObjectPaginator: 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)