Найти - Пользователи
Полная версия: Вызов сигнала в определенных случаях
Начало » Django » Вызов сигнала в определенных случаях
1
svas
Возможно ли как контролировать вызов сигнала? Т.е. чтобы когда я вызывал метод save у объекта, в одних случаях вызывался сигнал post_save в других нет
tmt
The django.db.models.signals module defines a set of signals sent by the module system.
Many of these signals are sent by various model methods like __init__() or save() that you can overwrite in your own code.
If you override these methods on your model, you must call the parent class’ methods for this signals to be sent.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB