Horrible hacks to work with Django 1.6 and still be compatible