From 2aabb76ae046c7f9be7a5d6ca031720feb271c5f Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 14 Jan 2018 12:59:23 +0100 Subject: [PATCH] remove delete option from inline images If one selectes a inline picture and deletes it. The whole article gets deleted. It's therefor better if the user has to go to the picture admin form and delete the picture from there --- django/didgeridoo/webshop/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/didgeridoo/webshop/admin.py b/django/didgeridoo/webshop/admin.py index 4951054..e3d5f74 100644 --- a/django/didgeridoo/webshop/admin.py +++ b/django/didgeridoo/webshop/admin.py @@ -25,6 +25,7 @@ class PictureAdmin(admin.ModelAdmin): class PictureInline(admin.StackedInline): model = Picture form = PictureForm + can_delete = False verbose_name_plural = 'pictures'