This commit is contained in:
Chris Van 2012-05-10 01:58:03 -07:00
Родитель c2a124e777
Коммит dd8e7790c8
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -767,8 +767,11 @@ class Addon(amo.models.OnChangeMixin, amo.models.ModelBase):
addon_p.price = price
addon_dict[addon_p.addon_id]._premium = addon_p
# Attach counts for add-on compatibility reports.
CompatReport.transformer(non_apps)
# This isn't cheating, right? I don't want to add `compat` to
# market's INSTALLED_APPS.
if not settings.MARKETPLACE:
# Attach counts for add-on compatibility reports.
CompatReport.transformer(non_apps)
return addon_dict

Просмотреть файл

@ -504,7 +504,7 @@ class APITest(TestCase):
'<thumbnail type="" width="200" height="150">')
def test_performance_data(self):
with self.assertNumQueries(27):
with self.assertNumQueries(28):
response = self.client.get('/en-US/firefox/api/%.1f/addon/3615' %
api.CURRENT_VERSION)
doc = pq(response.content)