mirror of
https://github.com/pretix/pretix.git
synced 2026-09-14 16:24:43 +00:00
Added dispatch_uid argument to all receivers to prevent duplicate
execution
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user