Bug #69539
|first sur un LazyFormData (AttributeError: 'LazyFormData' object has no attribute '0')
Début:
23 septembre 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/94232/
AttributeError: 'LazyFormData' object has no attribute '0' (33 additional frame(s) were not displayed) ... File "django/template/base.py", line 987, in render output = self.filter_expression.resolve(context) File "django/template/base.py", line 698, in resolve new_obj = func(obj, *arg_vals) File "wcs/qommon/templatetags/qommon.py", line 961, in first return defaultfilters.first(value) File "django/template/defaultfilters.py", line 531, in first return value[0] File "wcs/variables.py", line 809, in __getitem__ return getattr(self, str(key))
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a plus d'un an
- Projet changé de Suivi des traces à w.c.s.
- Sujet changé de AttributeError: 'LazyFormData' object has no attribute '0' à |first sur un LazyFormData (AttributeError: 'LazyFormData' object has no attribute '0')
Dans #62663 on a traité TypeError, reste AttributeError
Mis à jour par Lauréline Guérin il y a plus d'un an
- Fichier 0001-misc-fix-first-last-with-LazyFormData-value-69539.patch 0001-misc-fix-first-last-with-LazyFormData-value-69539.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 d'un an
- Statut changé de Solution proposée à Solution validée
Mis à jour par Lauréline Guérin il y a plus d'un an
- Statut changé de Solution validée à Résolu (à déployer)
commit 24eec03694d5094d534b7ee1b3db645807b065e2 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Sep 26 10:00:07 2022 +0200 misc: fix |first & |last with LazyFormData value (#69539)
Mis à jour par Transition automatique il y a plus d'un an
- Statut changé de Résolu (à déployer) à Solution déployée
misc: fix |first & |last with LazyFormData value (#69539)