1 from mygpo
.subscriptions
.signals
import subscription_changed
2 from mygpo
.suggestions
.tasks
import update_suggestions
5 def update_suggestions_on_subscription(sender
, **kwargs
):
6 """ update a user's suggestions after one of his subscriptions change """
8 update_suggestions
.delay(user
)
11 subscription_changed
.connect(update_suggestions_on_subscription
,
12 dispatch_uid
='update_suggestions_on_subscription')