Fix import in Django 1.3