def __init__(self, *args, **kwargs):
        """Initializes a new instance of :see:LocalizedFieldWidget."""

        initial_widgets = [
            copy.copy(self.widget)
            for _ in settings.LANGUAGES
        ]

        super().__init__(initial_widgets, *args, **kwargs)

        for ((lang_code, lang_name), widget) in zip(settings.LANGUAGES, self.widgets):
            widget.attrs['lang'] = lang_code
            widget.lang_code = lang_code
            widget.lang_name = lang_name
def __init__ ( self , * args , ** kwargs ) : initial_widgets = [ copy . copy ( self . widget ) for _ in settings . LANGUAGES ] super ( ) . __init__ ( initial_widgets , * args , ** kwargs ) for ( ( lang_code , lang_name ) , widget ) in zip ( settings . LANGUAGES , self . widgets ) : widget . attrs [ 'lang' ] = lang_code widget . lang_code = lang_code widget . lang_name = lang_name
Initializes a new instance of :see:LocalizedFieldWidget.