Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def form_valid(self, form):
- # By assigning the User to a property on the view, we allow subclasses
- # of SignupView to access the newly created User instance
- self.user = form.save(self.request)
- try:
- return complete_signup(
- self.request, self.user,
- app_settings.EMAIL_VERIFICATION,
- self.get_success_url())
- except ImmediateHttpResponse as e:
- return e.response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement