Don't try to fix it.
Checking for the attribute is probably cleaner than catching all AttributeErrors.
Nothing in the app changed, but the test script was updated. [ci skip]
Seems like 2.5 is gone from travis-ci (probably wheezy)
It was deprecated since 1.4 and has been removed.
There's no reason Django 1.3 shouldn't work, but I don't support unsupported releases.