make tests succeed on Django-1.7