Allow django < 1.8