from registration.view import activate

def custom_activate(request, backend, template_name=
    'registration/activate.html', success_url=None, extra_context=None, **
    kwargs):
    success_url = request.GET.get('next', None)
return activate(request, template_name=template_name, success_url=
    success_url, extra_context=None, **kwargs)
Getting `django-registration` to send you to the page you were originally trying to visit