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:
parent
2d3def9fa2
commit
05bdb8d64b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue