def get(self, request, *args, **kwargs):
    'The base activation logic; subclasses should leave this method\n        alone and implement activate(), which is called from this method.\n        '
    activated_user = self.activate(*args, **kwargs)
    if activated_user:
        users_signals.user_activated.send(sender=self.__class__, user=activated_user, request=request)
        return redirect(self.success_url)
    return super().get(request, *args, **kwargs)
The base activation logic; subclasses should leave this method
alone and implement activate(), which is called from this method.
def get(self, request, *args, **kwargs):
    'The base activation logic; subclasses should leave this method\n        alone and implement activate(), which is called from this method.\n        '
    activated_user = self.activate(*args, **kwargs)
    if activated_user:
        users_signals.user_activated.send(sender=self.__class__, user=activated_user, request=request)
        return redirect(self.success_url)
    return super().get(request, *args, **kwargs)