From 04fc4b4a15ca50b9a347d622fc9a88adae6dc263 Mon Sep 17 00:00:00 2001 From: shagi Date: Wed, 23 Dec 2020 19:04:31 +0100 Subject: [PATCH] Allow overriding base_form template controls --- gas/templates/gas/base_form.html | 2 ++ gas/views.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gas/templates/gas/base_form.html b/gas/templates/gas/base_form.html index 41aef89..abb2980 100644 --- a/gas/templates/gas/base_form.html +++ b/gas/templates/gas/base_form.html @@ -16,6 +16,7 @@ {% endblock %} {% endblock %} diff --git a/gas/views.py b/gas/views.py index 2318cb7..b6f748a 100644 --- a/gas/views.py +++ b/gas/views.py @@ -168,7 +168,7 @@ class GASUpdateView(GASMixin, UpdateView): class GASDeleteView(GASMixin, DeleteView): template_name = "gas/delete_confirmation.html" confirmation_text = _("Are your sure you want to delete {object}?") - deleted_text = _("%(obj)s deleted.") + deleted_text = _("{object} deleted.") def get_confirmation_text(self): return self.confirmation_text.format(object=self.object)