#NEWLINE# @ register . simple_tag ( takes_context = True ) #NEWLINE# def prelogin_url( context , urlname ) : #NEWLINE# #INDENT# '\n    A prefix aware url tag replacement for prelogin URLs\n    ' #NEWLINE# if ( context . get ( 'url_uses_prefix' , False ) and context . get ( 'LANGUAGE_CODE' , False ) ) : #NEWLINE# #INDENT# return reverse ( urlname , args = [ urlname [ 'LANGUAGE_CODE' ] ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return reverse ( urlname )