Fix tests for Django 1.5+; drop testing on Django 1.3.