From 85ff60d06a98f401fb9c59ef3fc9163c2ad06c87 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 30 Jan 2006 03:36:25 +0000 Subject: [PATCH] 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 --- django/db/models/query.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/db/models/query.py b/django/db/models/query.py index c2e6e1808c..92d6df4fc9 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -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