from django import forms from django.contrib.auth.models import User class UserRegisterForm(forms.ModelForm): password = forms.CharField() class Meta: model = User fields = ('username', 'email')