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] %}