[Python-modules-commits] [python-django-registration] 04/11: Fixes double signal sending when activating user.

Stephan Suerken absurd at moszumanska.debian.org
Fri Jul 29 19:18:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

absurd pushed a commit to branch master
in repository python-django-registration.

commit a005f974538796ec396ef36fdbf01ac1399a48ad
Author: Tomaz Muraus <Tomaz Muraus>
Date:   Thu Oct 8 11:50:26 2015 -0700

    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 | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/registration/views.py b/registration/views.py
index 0f4e6e3..e969045 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
 
 
@@ -99,11 +98,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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-registration.git



More information about the Python-modules-commits mailing list