from django.contrib.auth.forms import UserCreationForm from shop.main.models import UserProfile class RegisterUserForm(UserCreationForm): class Meta: model = UserProfile fields = ('username', 'password1', 'password2', 'anons', 'avatar')