From 9f53bda1cd13072c206766fb0f10191d6815af5a Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Tue, 24 Mar 2020 23:02:12 +0100 Subject: [PATCH] clean code --- apps/note/tables.py | 28 ++++++++++++-------- templates/note/transactiontemplate_list.html | 18 ++++++------- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/apps/note/tables.py b/apps/note/tables.py index ad57c265..bfb60303 100644 --- a/apps/note/tables.py +++ b/apps/note/tables.py @@ -56,7 +56,11 @@ class HistoryTable(tables.Table): def render_valid(self, value): return "✔" if value else "✖" - +# function delete_button(id) provided in template file +delete_template = """ +