fix Django 1.6 compatibility

Import fix for Django1.6+ compat (works with old Django versions)