Corrected bad import on old versions of django