Commits

Anonymous committed b57ed72

Update registration views.

Comments (0)

Files changed (1)

registration/views.py

     if request.method == 'POST':
         form = form_class(data=request.POST, files=request.FILES)
         if form.is_valid():
-            new_user = backend.register(request, **form.cleaned_data)
-            if success_url is None:
-                to, args, kwargs = backend.post_registration_redirect(request, new_user)
-                return redirect(to, *args, **kwargs)
-            else:
-                return redirect(success_url)
+            return redirect(success_url)
     else:
         form = form_class()