#NEWLINE# def make_call( self , device , token ) : #NEWLINE# #INDENT# locale = translation . get_language ( ) #NEWLINE# validate_voice_locale ( locale ) #NEWLINE# url = reverse ( 'two_factor:twilio_call_app' , kwargs = { #NEWLINE# #INDENT# 'token' : token , #NEWLINE# #UNINDENT# } ) #NEWLINE# url = ( '%s?%s' % ( url , urlencode ( { #NEWLINE# #INDENT# 'locale' : token , #NEWLINE# #UNINDENT# } ) ) ) #NEWLINE# uri = ( 'https://%s%s' % ( Site . objects . get_current ( ) . domain , url ) ) #NEWLINE# self . client . calls . create ( to = device . number , from_ = self . from_number , url = uri , method = 'GET' , if_machine = 'Hangup' , timeout = 15 )