Ticket 23840

Fixed https://code.djangoproject.com/ticket/23840