From 912ce5da2eb124105a837d4cfb2df3f0ab0c3523 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 13 Aug 2020 20:13:00 +0200 Subject: [PATCH] Fix the amount history in the button update page --- apps/note/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/note/views.py b/apps/note/views.py index 50358128..4af91420 100644 --- a/apps/note/views.py +++ b/apps/note/views.py @@ -121,7 +121,7 @@ class TransactionTemplateUpdateView(ProtectQuerysetMixin, LoginRequiredMixin, Up for log in update_logs.all(): old_dict = json.loads(log.previous) new_dict = json.loads(log.data) - if not "amount" in old_price: + if "amount" not in old_dict: # The amount price of the button was not modified in this changelog continue old_price = old_dict["amount"]