https://code.djangoproject.com/ticket/7377