Fixes Django 2.6 tests.