1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
From 6644af9b57c248b8e2d8cc62f231fc34a9409b6d Mon Sep 17 00:00:00 2001
From: Tomaz Muraus <Tomaz Muraus>
Date: Thu, 8 Oct 2015 11:50:26 -0700
Subject: Fixes double signal sending when activating user.
The patch can't be submitted upstream as there's no clear upstream
maintainer currently.
Origin: other, https://bitbucket.org/kami/django-registration/commits/6a0aff33bcf2cc24190916c74bc1b6822622d45a
Bug-Debian: http://bugs.debian.org/745756
Last-Update: 2014-05-27
Patch-Name: send_signal_only_once_when_activating_user.patch
---
registration/views.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/registration/views.py b/registration/views.py
index d738021..9910bcc 100644
--- a/registration/views.py
+++ b/registration/views.py
@@ -8,7 +8,6 @@ from django.shortcuts import redirect
from django.views.generic.base import TemplateView
from django.views.generic.edit import FormView
-from registration import signals
from registration.forms import RegistrationForm
@@ -78,9 +77,6 @@ class ActivationView(TemplateView):
"""
activated_user = self.activate(*args, **kwargs)
if activated_user:
- signals.user_activated.send(sender=self.__class__,
- user=activated_user,
- request=self.request)
success_url = self.get_success_url(activated_user)
try:
to, args, kwargs = success_url
|