[Django]-Can I manually trigger signals in Django?

65👍

Yes. See the documentation:

from django.db.models.signals import post_save

instance = MyModel(field='qwerty')
post_save.send(MyModel, instance=instance, created=True)

Leave a comment