newer versions of django have backwards-incompatible error messages