Private
Public Access
1
0

homepage -> landing page

This commit is contained in:
Sander Roosendaal
2019-06-11 21:59:34 +02:00
parent 55e5193808
commit 488e09fd49
6 changed files with 35 additions and 65 deletions

View File

@@ -578,6 +578,12 @@ class RegistrationForm(UserCreationForm):
model = User
fields = ("username", "first_name", "last_name", "email", "password1", "password2")
widgets = {
'username': forms.TextInput(attrs={'autocomplete':'new-password'}),
'password1': forms.PasswordInput(attrs={'autocomplete':'new-password'}),
'password2': forms.PasswordInput(attrs={'autocomplete':'new-password'}),
}
class RegistrationFormTermsOfService(RegistrationForm):
"""
Subclass of ``RegistrationForm`` which adds a required checkbox