Remove code unneeded in Django 1.4+