from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User

# create forms here
class RegistrationForm(UserCreationForm):
    """
    Class RegistrationForm

    Extends UserCreationForm. Adds form fields for first and last name, as well
    as email.
    """
    first_name = forms.CharField(
        max_length=30, help_text='Optional.')
    last_name = forms.CharField(
        max_length=30, help_text='Optional.')
    email = forms.EmailField(
        max_length=254, help_text='Required. Inform a valid email address.')

    class Meta:
        model = User
        fields = ('username', 'first_name', 'last_name',
                  'email', 'password1', 'password2', )

0dadd85d17b32be0db5c3544b90e65f92535ea20
<mask token>


class RegistrationForm(UserCreationForm):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        model = User
        fields = ('username', 'first_name', 'last_name', 'email',
            'password1', 'password2')

<mask token>


class RegistrationForm(UserCreationForm):
    <mask token>
    first_name = forms.CharField(max_length=30, help_text='Optional.')
    last_name = forms.CharField(max_length=30, help_text='Optional.')
    email = forms.EmailField(max_length=254, help_text=
        'Required. Inform a valid email address.')


    class Meta:
        model = User
        fields = ('username', 'first_name', 'last_name', 'email',
            'password1', 'password2')

<mask token>


class RegistrationForm(UserCreationForm):
    """
    Class RegistrationForm

    Extends UserCreationForm. Adds form fields for first and last name, as well
    as email.
    """
    first_name = forms.CharField(max_length=30, help_text='Optional.')
    last_name = forms.CharField(max_length=30, help_text='Optional.')
    email = forms.EmailField(max_length=254, help_text=
        'Required. Inform a valid email address.')


    class Meta:
        model = User
        fields = ('username', 'first_name', 'last_name', 'email',
            'password1', 'password2')

from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User


class RegistrationForm(UserCreationForm):
    """
    Class RegistrationForm

    Extends UserCreationForm. Adds form fields for first and last name, as well
    as email.
    """
    first_name = forms.CharField(max_length=30, help_text='Optional.')
    last_name = forms.CharField(max_length=30, help_text='Optional.')
    email = forms.EmailField(max_length=254, help_text=
        'Required. Inform a valid email address.')


    class Meta:
        model = User
        fields = ('username', 'first_name', 'last_name', 'email',
            'password1', 'password2')

from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User

# create forms here
class RegistrationForm(UserCreationForm):
    """
    Class RegistrationForm

    Extends UserCreationForm. Adds form fields for first and last name, as well
    as email.
    """
    first_name = forms.CharField(
        max_length=30, help_text='Optional.')
    last_name = forms.CharField(
        max_length=30, help_text='Optional.')
    email = forms.EmailField(
        max_length=254, help_text='Required. Inform a valid email address.')

    class Meta:
        model = User
        fields = ('username', 'first_name', 'last_name',
                  'email', 'password1', 'password2', )
