I think it's right to move the logic into the else: https://github.com/Gluejar/regluit/pull/202#discussion_r6059064
parent
4e161bebe6
commit
646c8f09e3
|
@ -187,9 +187,10 @@ def handle_transaction_charged(sender,transaction=None, **kwargs):
|
|||
new_acq = Acq.objects.create(user=transaction.user,work=transaction.campaign.work,license= transaction.offer.license)
|
||||
transaction.campaign.update_left()
|
||||
notification.send([transaction.user], "purchase_complete", {'transaction':transaction}, True)
|
||||
from regluit.core.tasks import emit_notifications, watermark_acq
|
||||
watermark_acq(new_acq).delay()
|
||||
emit_notifications.delay()
|
||||
|
||||
from regluit.core.tasks import emit_notifications, watermark_acq
|
||||
watermark_acq(new_acq).delay()
|
||||
emit_notifications.delay()
|
||||
|
||||
transaction_charged.connect(handle_transaction_charged)
|
||||
|
||||
|
|
Loading…
Reference in New Issue