Added logging about exluded region filtering (bug 855510)

This commit is contained in:
Rob Hudson 2013-04-24 15:26:39 -07:00
Родитель 8a4d0e6acb
Коммит 9f455523b3
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -595,6 +595,8 @@ class Webapp(Addon):
if region: if region:
excluded = cls.get_excluded_in(region) excluded = cls.get_excluded_in(region)
if excluded: if excluded:
log.info('Excluding the following IDs based on region %s: %s'
% (region.slug, excluded))
srch = srch.filter(~F(id__in=excluded)) srch = srch.filter(~F(id__in=excluded))
if mobile: if mobile: