Commit 5bc215bb authored by David Seaward's avatar David Seaward

remove email field from registration form

parent 30dd0174
......@@ -4,5 +4,15 @@ from .models import User
class RegistrationForm(BaseRegistrationForm):
email = None # override base definition to remove email field
class Meta(BaseRegistrationForm.Meta):
model = User
# override base definition to remove email field
fields = [
User.USERNAME_FIELD,
'password1',
'password2'
]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment