#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( SettingsForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# active_language = get_language ( ) #NEWLINE# for name in sorted ( registry . keys ( ) ) : #NEWLINE# #INDENT# setting = registry [ name ] #NEWLINE# if kwargs [ 'editable' ] : #NEWLINE# #INDENT# field_class = FIELD_TYPES . get ( setting [ 'type' ] , forms . CharField ) #NEWLINE# if ( settings . USE_MODELTRANSLATION and setting [ 'translatable' ] ) : #NEWLINE# #INDENT# for code in OrderedDict ( settings . LANGUAGES ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# activate ( code ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _init_field ( setting , field_class , name , code ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . _init_field ( setting , field_class , name ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# activate ( active_language )