Double signals question

13 views
Skip to first unread message

chris breshears

unread,
Dec 4, 2009, 11:16:37 AM12/4/09
to django-paypal
I am getting two signals fired for each event. I have read the fix at
http://code.djangoproject.com/wiki/Signals#Helppost_saveseemstobeemittedtwiceforeachsave
but have found it rather confusing. How do I make it work with the
signals that are defined in django-paypal?

The suggested use is:
signals.post_save.connect(my_handler, MyModel,
dispatch_uid="path.to.this.module")

The current Django-paypal is:
subscription_signup.connect(sub_signup)

Not sure what all I need to add to my connect to make it work. I take
it "sub_signup" is "MyModel", but what is "my_handler"? Also,
dispatch_uid do I put a datetime in there so that it is unique?



chris breshears

unread,
Dec 4, 2009, 2:22:15 PM12/4/09
to django-paypal
I tested with - subscription_signup.connect(sub_signup,
dispatch_uid="paypal.standard.ipn.signals.subscription_signup")
Still get two signals.



On Dec 4, 9:16 am, chris breshears <poopcast...@gmail.com> wrote:
> I am getting two signals fired for each event.  I have read the fix athttp://code.djangoproject.com/wiki/Signals#Helppost_saveseemstobeemit...
Reply all
Reply to author
Forward
0 new messages