Ticket #8807: use_corevalidation.diff
File use_corevalidation.diff, 766 bytes (added by , 16 years ago) |
---|
-
django/forms/util.py
1 1 from django.utils.html import conditional_escape 2 from django.core.exceptions import ValidationError as CoreValidationError 2 3 from django.utils.encoding import smart_unicode, StrAndUnicode, force_unicode 3 4 from django.utils.safestring import mark_safe 4 5 … … 48 49 def __repr__(self): 49 50 return repr([force_unicode(e) for e in self]) 50 51 51 class ValidationError( Exception):52 class ValidationError(CoreValidationError): 52 53 def __init__(self, message): 53 54 """ 54 55 ValidationError can be passed any object that can be printed (usually