Fix iso_code
parent
6321c4d8c9
commit
10252a6352
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue