diff --git a/longclaw/checkout/utils.py b/longclaw/checkout/utils.py index f17be968..b5949fda 100644 --- a/longclaw/checkout/utils.py +++ b/longclaw/checkout/utils.py @@ -1,7 +1,7 @@ from decimal import Decimal from django.utils.module_loading import import_string from django.utils import timezone -from ipware.ip import get_real_ip +from ipware.ip import get_client_ip from longclaw.basket.utils import get_basket_items, destroy_basket from longclaw.shipping.utils import get_shipping_cost @@ -62,7 +62,7 @@ def create_order(email, else: shipping_country = shipping_address.country - ip_address = get_real_ip(request) + ip_address = get_client_ip(request) if shipping_country and shipping_option: site_settings = Configuration.for_site(request.site) shipping_rate = get_shipping_cost(