Fix iso_code

break-out-core-urls-views
Eric Holscher 2016-04-12 17:00:35 -07:00
parent 6321c4d8c9
commit 10252a6352
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ def attach_promo_data(sender, **kwargs):
ip = request.META.get('REMOTE_ADDR')
if ip:
geo_response = geo_reader.city(ip)
country_code = geo_response.iso_code
country_code = geo_response.country.iso_code
# Try to get a promo if we should be using one.
if show_promo: