2018-08-12 14:52:05 -04:00
|
|
|
#/usr/bin/env python3
|
|
|
|
"""
|
|
|
|
Form(s) for the signup app.
|
|
|
|
"""
|
|
|
|
from django import forms
|
|
|
|
from django.contrib.auth.forms import UserCreationForm
|
|
|
|
|
2018-09-05 14:13:47 -04:00
|
|
|
from user.models import User
|
2018-08-12 14:52:05 -04:00
|
|
|
|
|
|
|
class SignupForm(UserCreationForm):
|
|
|
|
"""
|
|
|
|
The form for the signup page.
|
|
|
|
"""
|
|
|
|
email = forms.EmailField(max_length=254, help_text="Must be a valid email address.")
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
model = User
|
|
|
|
fields = ('username', 'email', 'password1', 'password2')
|