applied django/django/pull/2919.patch