0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Provide a default label for the delete button on generic EditView

This commit is contained in:
Matt Westcott 2017-06-12 16:16:49 +01:00
parent 280c317c68
commit 560e430d0a

View File

@ -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