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


class CadastroForm(UserCreationForm):
	cpf = forms.CharField(max_length=11)
	matricula = forms.CharField(max_length=30, help_text='Matrícula sem o dígito do vínculo. Ex: 12345')
	#email = forms.EmailField(max_length=254, help_text='exemplo@email.com')
	class Meta:
		model = User
		fields = ('username','cpf', 'matricula', 'email', 'password1', 'password2', )
		#exclude = ('username',)
		#fields = ('cpf', 'matricula', 'email', 'password1', 'password2', )