diff --git a/readthedocs/donate/signals.py b/readthedocs/donate/signals.py index ef1dfa4a170..68632f22695 100644 --- a/readthedocs/donate/signals.py +++ b/readthedocs/donate/signals.py @@ -28,13 +28,13 @@ def show_to_geo(promo, country_code): # Remove promo's that exclude this country. - for geo_filter in promo.geo_geo_filters.all(): - if geo_filter.geo_filter_type == INCLUDE: + for geo_filter in promo.geo_filters.all(): + if geo_filter.filter_type == INCLUDE: if country_code in geo_filter.codes: continue else: return False - if geo_filter.geo_filter_type == EXCLUDE: + if geo_filter.filter_type == EXCLUDE: if country_code in geo_filter.codes: return False