From cc2c0faf1dcc03289b61fce8bf523cb6c7752436 Mon Sep 17 00:00:00 2001 From: DataMarket Date: Wed, 26 Oct 2011 12:19:12 +0000 Subject: [PATCH] Removed broken self.extra_where clause. --- multilingual/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multilingual/query.py b/multilingual/query.py index 3b336bf..afb0cc7 100644 --- a/multilingual/query.py +++ b/multilingual/query.py @@ -508,7 +508,7 @@ def setup_joins(self, names, opts, alias, dupe_multis, allow_many=True, def get_count(self): # optimize for the common special case: count without any # filters - if ((not (self.select or self.where or self.extra_where)) + if ((not (self.select or self.where)) and self.include_translation_data): obj = self.clone(extra_select = {}, extra_join = {},