Browse Source

Modifie la valeur par défault du hidden input à "" si aucune value

Permet la compatibilité sans JS car sinon il y avait None dans le champs
comme on ne lancait pas la fonction de reset
granuban
Maël Kervella 8 years ago
parent
commit
25ddaa704f
  1. 2
      machines/templatetags/bootstrap_form_typeahead.py

2
machines/templatetags/bootstrap_form_typeahead.py

@ -211,7 +211,7 @@ def hidden_tag( f_bound, f_name ):
'id': hidden_id(f_name), 'id': hidden_id(f_name),
'name': f_name, 'name': f_name,
'type': 'hidden', 'type': 'hidden',
'value': f_bound.value() 'value': f_bound.value() or ""
} }
) )

Loading…
Cancel
Save