<gh_stars>1-10
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from captcha.fields import CaptchaField


class SignUpForm(UserCreationForm):
    email = forms.CharField(max_length=254, required=True, widget=forms.EmailInput())
    captcha = CaptchaField()

    class Meta:
        model = User
        fields = ('username', 'email', '<PASSWORD>', '<PASSWORD>')

from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from captcha.fields import CaptchaField


class SignUpForm(UserCreationForm):
    email = forms.CharField(max_length=254, required=True, widget=forms.EmailInput())
    captcha = CaptchaField()

    class Meta:
        model = User
        fields = ('username', 'email', '<PASSWORD>', '<PASSWORD>')