Bug #45634
appel de |getlist sur une chaine
Début:
31 juillet 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'AttributeError'>', value = ''str' object has no attribute 'getlist'' Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/qommon/templatetags/qommon.py", line 68, in getlist 66 @register.filter 67 def getlist(mapping, key): > 68 return mapping.getlist(key) 69 70 locals: key = 'montant' mapping = 'Liste de règlements'
Le gabarit en question :
template = '<p>{% with f0=form_var_reglement_bis|getlist:"montant"|sum|decimal %}{{f0}}{% endwith %}</p>'
Fichiers
Révisions associées
Historique
Mis à jour par Thomas Noël il y a plus de 3 ans
- Fichier 0001-misc-avoid-crashes-when-getlist-filter-not-used-on-a.patch 0001-misc-avoid-crashes-when-getlist-filter-not-used-on-a.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Solution proposée à Solution validée
Ok.
Mis à jour par Thomas Noël il y a plus de 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 74b62af6d7a94f5aa34188d4402761ddd6e2de37 Author: Thomas NOEL <tnoel@entrouvert.com> Date: Fri Jul 31 10:06:05 2020 +0200 misc: avoid crashes when getlist filter not used on a block (#45634)
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: avoid crashes when getlist filter not used on a block (#45634)