def form_valid(self, form): ce = form.cleaned_data create_new_user( first_name=ce['first_name'], last_name=ce['last_name'], email=ce['email'], password=ce['password1'], ) return render( self.request, "registration_success.html", )
def setUp(self): user = UserFactory.build() confirm = EmailTemplate( name='registration confirmation', subject='Account activation', ) confirm.save() self.before = User.objects.count() self.user = create_new_user(first_name=user.first_name, last_name=user.last_name, email=user.email, password='******')
def setUp(self): user = UserFactory.build() confirm = EmailTemplate( name='registration confirmation', subject='Account activation', ) confirm.save() self.before = User.objects.count() self.user = create_new_user( first_name=user.first_name, last_name=user.last_name, email=user.email, password='******' )