def _validate_backend(self):
try:<EOL><INDENT>self.backend_class<EOL><DEDENT>except (ImportError, AttributeError) as e:<EOL><INDENT>raise ValidationError(_('<STR_LIT>') % e)<EOL><DEDENT>
ensure backend string representation is correct