def update_commerce_config(enabled=False, checkout_page='/test_basket/', receipt_page='/checkout/receipt/'):
 CommerceConfiguration.objects.create(checkout_on_ecommerce_service=enabled, receipt_page=receipt_page, single_course_checkout_page=checkout_page)

def update_commerce_config ( enabled = False , checkout_page = '/test_basket/' , receipt_page = '/checkout/receipt/' ) : CommerceConfiguration . objects . create ( checkout_on_ecommerce_service = enabled , receipt_page = receipt_page , single_course_checkout_page = checkout_page )
enable / disable commerceconfiguration model .