Support Django's core ValidationError for backwards compat. Refs #2145.