def delete_model(self, request, queryset): for obj in queryset: del_photo(request, obj) queryset.delete()
def delete_model(self, request, queryset): for obj in queryset: del_photo(request, obj) obj_pro = obj.product_id obj.delete() obj_pro.reload_config()