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
This commit is contained in:
Adrian Holovaty 2005-07-22 05:11:37 +00:00
parent 2d3def9fa2
commit 05bdb8d64b
1 changed files with 2 additions and 2 deletions

View File

@ -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)