Projet

Général

Profil

Development #42520

get_geojson avec request=None

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

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

Révision 38317886 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

maps: let get_geojson work with None as request (#42520)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

(le reste de la méthode gère déjà)

#2

Mis à jour par Thomas Noël il y a environ 4 ans

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

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

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

Formats disponibles : Atom PDF