from product.models import ProductVariant def update_product_prices(): print('calling the update product prices from cron') ProductVariant.update_all_prices()