Workaround https://code.djangoproject.com/ticket/18091