2021-08-06 22:09:20 +00:00
|
|
|
"""Users forms"""
|
2021-08-05 19:48:30 +00:00
|
|
|
from django.contrib.auth.forms import UserCreationForm
|
|
|
|
|
2021-08-06 21:39:05 +00:00
|
|
|
|
2021-08-05 19:48:30 +00:00
|
|
|
class CustomUserCreationForm(UserCreationForm):
|
2021-08-06 22:09:20 +00:00
|
|
|
"""Custom user creation form that adds an email field"""
|
2021-08-05 19:48:30 +00:00
|
|
|
class Meta(UserCreationForm.Meta):
|
|
|
|
fields = UserCreationForm.Meta.fields + ("email",)
|