Add workaround for django issue #20211.