Skip to content

Commit

Permalink
Update utils.py (#343)
Browse files Browse the repository at this point in the history
Co-authored-by: James Ramm <[email protected]>
  • Loading branch information
patagoniapy and JamesRamm authored Oct 25, 2021
1 parent f8d4de7 commit 2873f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions longclaw/checkout/utils.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 2873f51

Please sign in to comment.