@register.assignment_tag
def shipping_charge_excl_discount(method, basket):
 return method.calculate_excl_discount(basket)

@ register . assignment_tag def shipping_charge_excl_discount ( method , basket ) : return method . calculate_excl_discount ( basket )
template tag for calculating the shipping charge for a given shipping method and basket .