fix import error in django 1.5+. fixes #2