Fix to import affecting Django <1.6