You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
400 B
15 lines
400 B
from django import forms
|
|
from django.contrib.auth.forms import AuthenticationForm
|
|
|
|
|
|
class LearnerRegistrationForm(forms.Form):
|
|
first_name = forms.CharField()
|
|
last_name = forms.CharField()
|
|
email = forms.EmailField()
|
|
password = forms.CharField()
|
|
|
|
|
|
class AuthenticationForm(AuthenticationForm):
|
|
|
|
def clean_username(self):
|
|
return self.cleaned_data.get('username', '').lower()
|
|
|