magic-removal: Restored extra() on QuerySet -- renamed from extras()

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-01-30 03:36:25 +00:00
parent 9708aa51c0
commit 85ff60d06a
1 changed files with 3 additions and 3 deletions

View File

@ -202,6 +202,9 @@ class QuerySet(object):
"Returns a new QuerySet instance with '_distinct' modified."
return self._clone(_distinct=true_or_false)
def extra(self, select=None, where=None, params=None, tables=None):
return self._clone(_select=select, _where=where, _params=params, _tables=tables)
###################
# PRIVATE METHODS #
###################
@ -322,9 +325,6 @@ class QuerySet(object):
# combined._order_by = copy.deepcopy(self._order_by)
# return combined
#
# def extras(self, params=None, select=None, where=None, tables=None):
# return self._clone(_params=params, _select=select, _where=where, _tables=tables)
#
# def __and__(self, other):
# combined = self._combine(other)
# combined._filter = self._filter & other._filter