RecursionError: maximum recursion depth exceeded while calling a Python object
The below error occurs when trying to delete or unpublish an event from the event details page. @jdusseljee says the error doesn't happen if the unpublish action is used from the overview page.
Sentry Issue: CONCREXIT-22
RecursionError: maximum recursion depth exceeded while calling a Python object
(245 additional frame(s) were not displayed)
...
File "django/db/models/query_utils.py", line 139, in __get__
instance.refresh_from_db(fields=[field_name])
File "django/db/models/base.py", line 627, in refresh_from_db
db_instance = db_instance_qs.get()
File "django/db/models/query.py", line 411, in get
num = len(clone)
File "django/db/models/query.py", line 258, in __len__
self._fetch_all()
File "django/utils/deconstruct.py", line 16, in __new__
obj = super(klass, cls).__new__(cls)
Edited by Jelle Besseling