Projet

Général

Profil

Bug #71245

filter_by_internal_id value None (TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType')

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:
10 novembre 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/96805/

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
(42 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 743, in filter_by_internal_id
    return queryset.filter_by_internal_id(unlazy(form_internal_id))
  File "wcs/variables.py", line 216, in filter_by_internal_id
    int(value)

Fichiers

Révisions associées

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

misc: fix |filter_by_internal_id filter with TypeError (#71245)

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: int() argument must be a string, a bytes-like object or a number, not 'NoneType' à filter_by_internal_id value None (TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType')
#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 3f14d84d90a89897e92761262f9abb3192092eb0
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Wed Nov 16 19:20:34 2022 +0100

    misc: fix |filter_by_internal_id filter with TypeError (#71245)
#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