예제 #1
0
파일: forms.py 프로젝트: qinmaye/eoj3
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.fields['public_key'].initial = get_public_key()
예제 #2
0
 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()
예제 #3
0
파일: forms.py 프로젝트: qinmaye/eoj3
 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()
예제 #4
0
 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()