def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['public_key'].initial = get_public_key()
def __init__(self, request=None, *args, **kwargs): super(LoginForm, self).__init__(request, *args, **kwargs) self.fields['username'].label = _('Username or Email') self.fields['public_key'].initial = get_public_key()
def __init__(self, request=None, *args, **kwargs): # pylint: disable=keyword-arg-before-vararg super(LoginForm, self).__init__(request, *args, **kwargs) self.fields['username'].label = "用户名或邮箱" self.fields['password'].label = "密码" self.fields['public_key'].initial = get_public_key()
def __init__(self, request=None, *args, **kwargs): super(LoginForm, self).__init__(request, *args, **kwargs) self.fields['username'].label = "用户名或邮箱" self.fields['password'].label = "密码" self.fields['public_key'].initial = get_public_key()