from django import forms
from django.contrib.auth.models import User
from django.forms import ModelForm
from users.models import Person
from captcha.fields import CaptchaField
class RegistrationForm(ModelForm):
username = forms.CharField(label = (u'User Name'))
email = forms.EmailField(label = (u'Email Address'))
password = forms.CharField(label = (u'Password'), widget = forms.PasswordInput(render_value = False))
password1 = forms.CharField(label = (u'Verify Password'), widget = forms.PasswordInput(render_value = False))
captcha = CaptchaField(label = ("Captcha:"))
class Meta:
model = Person
exclude = ('user',)