khaganat-web/neluser/forms.py

10 lines
262 B
Python
Raw Normal View History

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,)