Bug #72566
ne pas inclure les champs "donnée calculée" dans geojson (AttributeError: 'ComputedField' object has no attribute 'get_view_short_value')
Début:
16 décembre 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/98708/
AttributeError: 'ComputedField' object has no attribute 'get_view_short_value' (9 additional frame(s) were not displayed) ... File "quixote/directory.py", line 92, in _q_traverse return obj() File "wcs/backoffice/management.py", line 2570, in geojson return json.dumps(geojson_formdatas(items, fields=fields), cls=misc.JSONEncoder) File "wcs/backoffice/management.py", line 125, in geojson_formdatas html_value = formdata.get_field_view_value(field, max_length=60) File "wcs/formdata.py", line 900, in get_field_view_value return get_value(field, self.data) File "wcs/formdata.py", line 892, in get_value return field.get_view_short_value(field_value, max_length)
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus d'un an
- Projet changé de Suivi des traces à w.c.s.
- Assigné à mis à Frédéric Péters
Mis à jour par Frédéric Péters il y a plus d'un an
- Fichier 0001-misc-exclude-computed-data-fields-from-geojson-72566.patch 0001-misc-exclude-computed-data-fields-from-geojson-72566.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a plus d'un an
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a plus d'un an
- Statut changé de Solution validée à Résolu (à déployer)
commit dff0fd07e771c6fe83c624472e5a7e9b89910a2b Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Dec 16 19:26:57 2022 +0100 misc: exclude computed data fields from geojson (#72566)
Mis à jour par Transition automatique il y a plus d'un an
- Statut changé de Résolu (à déployer) à Solution déployée
misc: exclude computed data fields from geojson (#72566)