Beispiel #1
0
 def update_featured_status(sender, instance, **kwargs):
     from olympia.addons.tasks import index_addons
     addons = kwargs.get(
         'addons', [addon.id for addon in instance.addons.all()])
     if addons:
         clear_get_featured_ids_cache(None, None)
         index_addons.delay(addons)
Beispiel #2
0
 def update_featured_status(sender, instance, **kwargs):
     from olympia.addons.tasks import index_addons
     addons = kwargs.get(
         'addons', [addon.id for addon in instance.addons.all()])
     if addons:
         clear_get_featured_ids_cache(None, None)
         index_addons.delay(addons)
Beispiel #3
0
 def update_featured_status(sender, instance, **kwargs):
     addons = [addon.id for addon in instance.addons.all()]
     if addons:
         clear_get_featured_ids_cache(None, None)