PersistentModelQuerySet.delete() at lego/utils/managers.py:24 does instances.delete() on a queryset of its own class, calling itself forever.
Confirmed: Event.objects.filter(...).delete() -> RecursionError.
Dormant in production - app code consistently iterates and calls instance .delete() instead, which suggests people have hit this and worked around it without fixing it. But it's a landmine on every persistent model in LEGO. And note the second half: the method's docstring says it sets deleted=True, but nothing in it does.
PersistentModelQuerySet.delete()atlego/utils/managers.py:24doesinstances.delete()on a queryset of its own class, calling itself forever.Confirmed:
Event.objects.filter(...).delete()->RecursionError.Dormant in production - app code consistently iterates and calls instance
.delete()instead, which suggests people have hit this and worked around it without fixing it. But it's a landmine on every persistent model in LEGO. And note the second half: the method's docstring says it setsdeleted=True, but nothing in it does.