The logic here seems to work, but Django 4.0 won't install over our other pinned requirements, so tests fail for Django 4.0.