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
This commit is contained in:
parent
7f94bd4f0d
commit
2aabb76ae0
|
@ -25,6 +25,7 @@ class PictureAdmin(admin.ModelAdmin):
|
|||
class PictureInline(admin.StackedInline):
|
||||
model = Picture
|
||||
form = PictureForm
|
||||
can_delete = False
|
||||
verbose_name_plural = 'pictures'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue