1 from mygpo
.subscriptions
.signals
import subscription_changed
2 from mygpo
.users
.tasks
import sync_user
5 def sync_user_on_subscription(sender
, **kwargs
):
6 """ synchronizes the user after one of his subscriptions has changed """
11 subscription_changed
.connect(sync_user_on_subscription
,
12 dispatch_uid
='sync_user_on_subscription')