Restores compatibility with django-redis >= 3.4.0.