I’m using Django’s post_save signal to send emails to users whenever a new article is added to the site. However, users still receive new emails whenever I use save() method for already created articles. How is it possible to receive emails only when NEW entry was added?
Thanks in advance
The
post_savesignal receives a booleancreatedargument which indicates if the savedinstancewas created.