Add E-Mail field to user registration

This commit is contained in:
Sebastian Lohff 2019-01-26 12:45:15 +01:00
parent b0316dc797
commit 9faf9c9ce0
1 changed files with 2 additions and 1 deletions

View File

@ -12,9 +12,10 @@ from .validators import CallUsernameValidator, CallLogValidator
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = User
fields = ("username", "dncall", "qrv2m", "qrv70cm", "extra2m70cm")
fields = ("username", "email", "dncall", "qrv2m", "qrv70cm", "extra2m70cm")
username = forms.CharField(max_length=50, validators=[CallUsernameValidator()])
email = forms.EmailField(required=True)
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)