Add E-Mail field to user registration
This commit is contained in:
parent
b0316dc797
commit
9faf9c9ce0
|
@ -12,9 +12,10 @@ from .validators import CallUsernameValidator, CallLogValidator
|
||||||
class CustomUserCreationForm(UserCreationForm):
|
class CustomUserCreationForm(UserCreationForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = User
|
model = User
|
||||||
fields = ("username", "dncall", "qrv2m", "qrv70cm", "extra2m70cm")
|
fields = ("username", "email", "dncall", "qrv2m", "qrv70cm", "extra2m70cm")
|
||||||
|
|
||||||
username = forms.CharField(max_length=50, validators=[CallUsernameValidator()])
|
username = forms.CharField(max_length=50, validators=[CallUsernameValidator()])
|
||||||
|
email = forms.EmailField(required=True)
|
||||||
|
|
||||||
class UpdateRefForm(forms.Form):
|
class UpdateRefForm(forms.Form):
|
||||||
existingRef = forms.ModelChoiceField(label="Existing Exchange", queryset=Reference.objects.all(), help_text="If exchange already exists, select it here.", required=False)
|
existingRef = forms.ModelChoiceField(label="Existing Exchange", queryset=Reference.objects.all(), help_text="If exchange already exists, select it here.", required=False)
|
||||||
|
|
Loading…
Reference in New Issue