This bug was fixed in the package python-django - 2:3.2.9-2 --------------- python-django (2:3.2.9-2) unstable; urgency=medium * Team upload. * Fix __in lookup crash when combining with filtered aggregates. Fix for: https://code.djangoproject.com/ticket/32690 This issue affects src:lava, where work is being done towards Django 3.2 compatibility. Upstream patch from: https://github.com/django/django/commit/136ff592ad8aa8b7fa1e61435e5501cc98ce8573 * Add Breaks: on lava-server << 2021.11 (Closes: #996931) * Add Breaks: on python-django-pyscss << 2.0.2-10 (Closes: #983618) -- Antonio Terceiro