Added dispatch_uid argument to all receivers to prevent duplicate

execution
This commit is contained in:
Raphael Michel
2015-08-15 14:36:29 +02:00
parent 9720cd8fea
commit 8e086f1f3f
13 changed files with 18 additions and 18 deletions

View File

@@ -7,14 +7,14 @@ from pretix.base.signals import register_payment_providers
from pretix.presale.signals import html_head
@receiver(register_payment_providers)
@receiver(register_payment_providers, dispatch_uid="payment_stripe")
def register_payment_provider(sender, **kwargs):
from .payment import Stripe
return Stripe
@receiver(html_head)
@receiver(html_head, dispatch_uid="payment_stripe_html_head")
def html_head_presale(sender, request=None, **kwargs):
from .payment import Stripe