def get_default_shipping_method(request):
    active_shipping_methods = ShippingMethod.objects.filter(active=True)
    return criteria_utils.get_first_valid(request, active_shipping_methods)
Returns the default shipping method for the passed request.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/shipping/utils.py/get_default_shipping_method