khaganat-web/neluser/forms.py
Rodolphe Breard ab4eb7414c Add basic user functionalities
Users need to register, login, logout and reset their password.
2018-02-04 01:36:39 +01:00

9 lines
262 B
Python

from django.contrib.auth.forms import UserCreationForm
from django.utils.translation import gettext_lazy as _
from .models import NelUser
class RegistrationForm(UserCreationForm):
class Meta:
model = NelUser
fields = (NelUser.EMAIL_FIELD,)