#NEWLINE# def bootstrap_smsgh_gateway( apps = None ) : #NEWLINE# #INDENT# ( default_currency , _ ) = ( apps . get_model ( 'accounting' , 'Currency' ) if apps else Currency ) . objects . get_or_create ( code = settings . DEFAULT_CURRENCY ) #NEWLINE# sms_gateway_fee_class = ( apps . get_model ( 'smsbillables' , 'SmsGatewayFee' ) if sms_gateway_fee_criteria_class else SmsGatewayFee ) #NEWLINE# sms_gateway_fee_criteria_class = ( apps . get_model ( 'smsbillables' , 'SmsGatewayFeeCriteria' ) if apps else SmsGatewayFeeCriteria ) #NEWLINE# SmsGatewayFee . create_new ( SQLSMSGHBackend . get_api_id ( ) , INCOMING , Decimal ( '0.0' ) , currency = default_currency , fee_class = sms_gateway_fee_class , criteria_class = sms_gateway_fee_criteria_class ) #NEWLINE# SmsGatewayFee . create_new ( SQLSMSGHBackend . get_api_id ( ) , OUTGOING , Decimal ( '0.0' ) , currency = default_currency , fee_class = sms_gateway_fee_class , criteria_class = sms_gateway_fee_criteria_class ) #NEWLINE# log_smsbillables_info ( 'Updated SMSGH gateway fees.' )