Answer the question
In order to leave comments, you need to log in
How do I catch the add data event through the Django admin?
Good day. There was a task of the following type: there is a blog, in it I created a model for subscribing to an email newsletter. It is planned that when adding an article through the admin panel, launch a function that would go through all subscribers and send them a letter about adding. How can I catch the addition?
Answer the question
In order to leave comments, you need to log in
It is possible via signals (see the answer above), but I would override the save_model() method and call the dispatch from there with an asynchronous task via celery ( www.celeryproject.org/)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question