From 560e430d0a13bee5818dd2609f47ba4935d20bb5 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Mon, 12 Jun 2017 16:16:49 +0100 Subject: [PATCH] Provide a default label for the delete button on generic EditView --- wagtail/wagtailadmin/views/generic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wagtail/wagtailadmin/views/generic.py b/wagtail/wagtailadmin/views/generic.py index 0b4769b13b..5458c3e1f2 100644 --- a/wagtail/wagtailadmin/views/generic.py +++ b/wagtail/wagtailadmin/views/generic.py @@ -134,6 +134,7 @@ class EditView(PermissionCheckedMixin, TemplateResponseMixin, BaseUpdateView): context_object_name = None template_name = 'wagtailadmin/generic/edit.html' permission_required = 'change' + delete_item_label = ugettext_lazy("Delete") success_message = None error_message = None