@register.assignment_tag
def shipping_charge(method, basket):
    return method.calculate(basket)
Convert CIDR string or single IP address as string to IP range given as tuple of integers (inclusive)
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/templatetags/shipping_tags.py/shipping_charge--crossover with--dataset/ETHPy150Open securitykiss-com/rfw/rfw/iputil.py/cidr2range