Bug #70979
filtre |distance_filter, formdata sans geoloc (TypeError: 'NoneType' object is not subscriptable)
Début:
03 novembre 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/96718/
TypeError: 'NoneType' object is not subscriptable (35 additional frame(s) were not displayed) ... File "django/template/defaulttags.py", line 514, in render values = {key: val.resolve(context) for key, val in self.extra_context.items()} File "django/template/defaulttags.py", line 514, in <dictcomp> values = {key: val.resolve(context) for key, val in self.extra_context.items()} File "django/template/base.py", line 698, in resolve new_obj = func(obj, *arg_vals) File "wcs/qommon/templatetags/qommon.py", line 713, in distance_filter return queryset.distance_filter(distance=int(unlazy(distance))) File "wcs/variables.py", line 195, in distance_filter center_lon, center_lat = center['lon'], center['lat']
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 TypeError: 'NoneType' object is not subscriptable à filtre |distance_filter, formdata sans geoloc (TypeError: 'NoneType' object is not subscriptable)
- Assigné à mis à Lauréline Guérin
Mis à jour par Lauréline Guérin il y a plus d'un an
- Fichier 0001-misc-fix-distance_filter-templatetag-whith-missing-g.patch 0001-misc-fix-distance_filter-templatetag-whith-missing-g.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 9fe04fb29522863df9a524569e46348e38dada66 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Nov 3 20:31:36 2022 +0100 misc: fix |distance_filter templatetag whith missing geoloc (#70979)
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 |distance_filter templatetag whith missing geoloc (#70979)