Skip to content

Commit 7d586be

Browse files
ericholscheragjohnson
authored andcommitted
Fix geo filters (#2931)
* Fix geo filters * Another fix
1 parent 951937c commit 7d586be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readthedocs/donate/signals.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828

2929
def show_to_geo(promo, country_code):
3030
# Remove promo's that exclude this country.
31-
for geo_filter in promo.geo_geo_filters.all():
32-
if geo_filter.geo_filter_type == INCLUDE:
31+
for geo_filter in promo.geo_filters.all():
32+
if geo_filter.filter_type == INCLUDE:
3333
if country_code in geo_filter.codes:
3434
continue
3535
else:
3636
return False
37-
if geo_filter.geo_filter_type == EXCLUDE:
37+
if geo_filter.filter_type == EXCLUDE:
3838
if country_code in geo_filter.codes:
3939
return False
4040

0 commit comments

Comments
 (0)