Moves an import for Django1.6 compatibility.