compatibility with tests and older django versions (1.4.)