TypeError: int() argument must be a string, a bytes-like object or a number, not 'SimpleLazyObject'
(14 additional frame(s) were not displayed)
...
File "django/db/models/sql/query.py", line 1116, in build_lookup
lookup = lookup_class(lhs, rhs)
File "django/db/models/lookups.py", line 20, in __init__
self.rhs = self.get_prep_lookup()
File "django/db/models/fields/related_lookups.py", line 59, in get_prep_lookup
self.rhs = [target_field.get_prep_value(v) for v in self.rhs]
File "django/db/models/fields/related_lookups.py", line 59, in <listcomp>
self.rhs = [target_field.get_prep_value(v) for v in self.rhs]
File "django/db/models/fields/__init__.py", line 972, in get_prep_value
return int(value)
In GitLab by @sentry on Dec 16, 2019, 01:45
https://ae2.utbm.fr/equipe_info/sith/issues/290/ Happens with anonymous users, really easy to fix ;)