[Feeds] update / fix feed-downloader
[mygpo.git] / mygpo / users / signals.py
blob84d034939df07c012ea26c9d58fbafc358925f64
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 """
7 user = kwargs['user']
8 sync_user.delay(user)
11 subscription_changed.connect(sync_user_on_subscription,
12 dispatch_uid='sync_user_on_subscription')