コード例 #1
0
ファイル: signal_handlers.py プロジェクト: yurkobb/shuup
def handle_product_post_save(sender, instance, **kwargs):
    bump_product_signal_handler(sender, instance, **kwargs)
    bump_prices_for_product(instance)

    for shop_id in set(instance.shop_products.all().values_list("shop_id",
                                                                flat=True)):
        context_cache_item_bumped.send(sender=Shop, shop_id=shop_id)
コード例 #2
0
ファイル: signal_handers.py プロジェクト: yashodhank/shuup
def handle_product_post_save(sender, instance, **kwargs):
    bump_product_signal_handler(sender, instance, **kwargs)
    bump_prices_for_product(instance)
コード例 #3
0
ファイル: signal_handers.py プロジェクト: ruqaiya/shuup
def handle_product_post_save(sender, instance, **kwargs):
    bump_product_signal_handler(sender, instance, **kwargs)
    bump_prices_for_product(instance)