Projet

Général

Profil

Bug #70979

filtre |distance_filter, formdata sans geoloc (TypeError: 'NoneType' object is not subscriptable)

Ajouté par Sentry Io il y a plus d'un an. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
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

Révision 9fe04fb2 (diff)
Ajouté par Lauréline Guérin il y a plus d'un an

misc: fix |distance_filter templatetag whith missing geoloc (#70979)

Historique

#1

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
#2

Mis à jour par Lauréline Guérin il y a plus d'un an

#3

Mis à jour par Frédéric Péters il y a plus d'un an

  • Statut changé de Solution proposée à Solution validée
#4

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)
#5

Mis à jour par Transition automatique il y a plus d'un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#6

Mis à jour par Transition automatique il y a plus d'un an

Automatic expiration

Formats disponibles : Atom PDF