From c9a709953f299a8cc2c65a5ccbc988decec5251a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89loi=20Rivard?=
Date: Wed, 18 Oct 2023 23:47:21 +0200
Subject: [PATCH] chore: support for wtforms 3.1 (#1248)
---
ihatemoney/templates/forms.html | 6 +++++-
pyproject.toml | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html
index e339268e..cb586807 100644
--- a/ihatemoney/templates/forms.html
+++ b/ihatemoney/templates/forms.html
@@ -179,7 +179,11 @@
{{_("No one")}}
- {% for key, value, checked in form.payed_for.iter_choices() | sort(attribute='1') %}
+ {% for choices in form.payed_for.iter_choices() | sort(attribute='1') %}
+ {# Compatibility with wtforms<3.1 #}
+ {% set key = choices[0] %}
+ {% set value = choices[1] %}
+ {% set checked = choices[2] %}