Project

General

Profile

Bug #64768

TypeError: int() argument must be a string, a bytes-like object or a number, not 'LazyFormDefObjectsManager'

Added by Sentry Io 9 months ago. Updated 9 months ago.

Status:
En cours
Priority:
Normal
Target version:
-
Start date:
03 May 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/55383/
https://sentry.entrouvert.org/entrouvert/publik/issues/55382/

TypeError: int() argument must be a string, a bytes-like object or a number, not 'LazyFormDefObjectsManager'
(23 additional frame(s) were not displayed)
...
  File "wcs/data_sources.py", line 295, in get_structured_items
    items = _get_structured_items(data_source, mode=mode, raise_on_error=raise_on_error)
  File "wcs/data_sources.py", line 308, in _get_structured_items
    return CardDef.get_data_source_items(data_source['type'])
  File "wcs/carddef.py", line 206, in get_data_source_items
    criterias.extend(custom_view.get_criterias(formdef=carddef, compile_templates=True))
  File "wcs/custom_views.py", line 165, in get_criterias
    keep_templates=keep_templates,
  File "wcs/backoffice/management.py", line 1996, in get_view_criterias
    filter_field_value = int(filter_field_value)

Files

History

#1

Updated by Lauréline Guérin 9 months ago

  • Project changed from Suivi des traces to w.c.s.
  • Description updated (diff)
#3

Updated by Lauréline Guérin 9 months ago

Patch partiel: la partie filtre doit être corrigée ainsi, mais je me heurte à un soucis au niveau de l'enregistrement de la session, car dans ma donnée calculée j'ai du lazy
(ça ressemble à #60611)

Besoin d'aide et d'idées pour corriger la partie session

#4

Updated by Lauréline Guérin 9 months ago

  • Assignee set to Lauréline Guérin

Also available in: Atom PDF