Switch to importing ValidationError from django.core.exceptions.