[Django]-Django signals not fired when saving from admin interface

0👍

had a similar problem. My Problem was to upload the image to some other destination once the model is saved though admin. Solved it by implementing Admin class on admin.py
e.g if you have a model namely Shop then in your admin.py would be like

@admin.register(Shop)
class ShopAdmin(admin.ModelAdmin):
    def save_model(self, request, obj, form, change):
        instance = form.instance
        instance.save()
        image_path = instance.banner_image.path
        move_image(image_path)

Leave a comment