Django 1.4 support in tests