1👍
✅
If you don’t need to restrict the triggering to the admin panel, you can use Django signals (https://docs.djangoproject.com/en/dev/topics/signals/)
Otherwise, you can override the ModelAdmin.save_model
of the admin to trigger your function, https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model
Source:stackexchange.com