[Fixed]-Django Signals: using update_field as condition

13👍

Your condition does not correspond to what you want as ‘sales_qty’ is always true.

You want your condition to be:

if created or 'sale_item' in update_fields or 'sales_qty' in update_fields:

Leave a comment