Bug #42397
KeyError: 'start_datetime'
Début:
02 mai 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/2000/
KeyError: 'start_datetime' (9 additional frame(s) were not displayed) ... File "django/forms/forms.py", line 183, in is_valid return self.is_bound and not self.errors File "django/forms/forms.py", line 175, in errors self.full_clean() File "django/forms/forms.py", line 384, in full_clean self._clean_fields() File "django/forms/forms.py", line 405, in _clean_fields value = getattr(self, 'clean_%s' % name)() File "chrono/manager/forms.py", line 200, in clean_end_datetime if self.cleaned_data['end_datetime'] <= self.cleaned_data['start_datetime']: Internal Server Error: /manage/agendas/26/desk/6/add-time-period-exception
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a environ 4 ans
- Fichier 0001-manager-fix-exception-form-when-start_datetime-is-in.patch 0001-manager-fix-exception-form-when-start_datetime-is-in.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 environ 4 ans
- Statut changé de Solution proposée à Solution validée
(et ça me rappelle qu'on doit adopter les super() écrits ainsi dans tous les modules python3)
Mis à jour par Lauréline Guérin il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit cc6da3d0a8f7394f869cc0d1456ccfed1945555e Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue May 5 14:59:24 2020 +0200 manager: fix exception form when start_datetime is invalid (#42397)
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
manager: fix exception form when start_datetime is invalid (#42397)