Development #42520
get_geojson avec request=None
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
06 mai 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
C'est quelque chose utilisé dans Toodego pour créer des pages pour différents lieux, et çe ne passe plus :
File "/usr/lib/python3/dist-packages/combo_plugin_gnm/management/commands/gnm_create_places.py", line 43, in handle for feature in layer.get_geojson(request=None)['features']: File "/usr/lib/python3/dist-packages/combo/apps/maps/models.py", line 201, in get_geojson distance = float(request.GET['distance']) AttributeError: 'NoneType' object has no attribute 'GET'
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-maps-let-get_geojson-work-with-None-as-request-42520.patch 0001-maps-let-get_geojson-work-with-None-as-request-42520.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
(le reste de la méthode gère déjà)
Mis à jour par Thomas Noël il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 383178867eefe137bcacdff2ad7f6e13831326c8 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Wed May 6 08:30:48 2020 +0200 maps: let get_geojson work with None as request (#42520)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
maps: let get_geojson work with None as request (#42520)