Work with Django 1.5 but not 1.6