From 07c83384858c3c357a586b6cda485255fa5bc72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Sat, 7 Oct 2017 22:12:48 +0000 Subject: [PATCH] =?UTF-8?q?Modifie=20la=20valeur=20par=20d=C3=A9fault=20du?= =?UTF-8?q?=20hidden=20input=20=C3=A0=20""=20si=20aucune=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Permet la compatibilité sans JS car sinon il y avait None dans le champs comme on ne lancait pas la fonction de reset --- machines/templatetags/bootstrap_form_typeahead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/templatetags/bootstrap_form_typeahead.py b/machines/templatetags/bootstrap_form_typeahead.py index b43af2c5..a5c58d00 100644 --- a/machines/templatetags/bootstrap_form_typeahead.py +++ b/machines/templatetags/bootstrap_form_typeahead.py @@ -211,7 +211,7 @@ def hidden_tag( f_bound, f_name ): 'id': hidden_id(f_name), 'name': f_name, 'type': 'hidden', - 'value': f_bound.value() + 'value': f_bound.value() or "" } )