예제 #1
0
파일: views.py 프로젝트: sarutobi/Rynda
 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",
     )
예제 #2
0
 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='******')
예제 #3
0
 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='******'
     )