def __init__(self, *args, **kwargs):
        """
        Init method.

        Args:
            *args (): Django's args for a form field.
            **kwargs (): Django's kwargs for a form field. Should contain a
                confirm_with keyword argument to point to the password field.
        """
        if "widget" not in kwargs:
            kwargs["widget"] = PasswordConfirmationInput(
                confirm_with=kwargs.pop('confirm_with', None))

        super(PasswordConfirmationField, self).__init__(*args, **kwargs)
def __init__ ( self , * args , ** kwargs ) : if "widget" not in kwargs : kwargs [ "widget" ] = PasswordConfirmationInput ( confirm_with = kwargs . pop ( 'confirm_with' , None ) ) super ( PasswordConfirmationField , self ) . __init__ ( * args , ** kwargs )
Init method.

        Args:
            *args (): Django's args for a form field.
            **kwargs (): Django's kwargs for a form field. Should contain a
                confirm_with keyword argument to point to the password field.