Development #43577
|get: vs lazy var
Début:
03 juin 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
→ TypeError: list indices must be integers or slices, not LazyFieldVar
Fichiers
Demandes liées
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a presque 4 ans
- Fichier 0001-templatetags-make-get-work-with-lazy-vars-43577.patch 0001-templatetags-make-get-work-with-lazy-vars-43577.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a presque 4 ans
Gérer aussi TypeError au cas où key est d'un type int() ne mange pas (notamment None).
Mis à jour par Frédéric Péters il y a presque 4 ans
- Fichier 0001-templatetags-make-get-work-with-lazy-vars-43577.patch 0001-templatetags-make-get-work-with-lazy-vars-43577.patch ajouté
Voilà avec TypeError.
Mis à jour par Thomas Noël il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
On pourrait ajouter des tests négatifs mais tester c'est quand même douter, hein.
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit c503f7336c8a0b147909e7d931728eacb1ea3d0c Author: Frédéric Péters <fpeters@entrouvert.com> Date: Wed Jun 3 15:12:26 2020 +0200 templatetags: make |get work with lazy vars (#43577)
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
Mis à jour par Frédéric Péters il y a presque 4 ans
- Lié à Development #43576: Ajout d'un filtre pour pointer un index dans une donnée tableau ajouté
templatetags: make |get work with lazy vars (#43577)