Ticket #8807: use_corevalidation.diff

File use_corevalidation.diff, 766 bytes (added by magneto, 16 years ago)
  • django/forms/util.py

     
    11from django.utils.html import conditional_escape
     2from django.core.exceptions import ValidationError as CoreValidationError
    23from django.utils.encoding import smart_unicode, StrAndUnicode, force_unicode
    34from django.utils.safestring import mark_safe
    45
     
    4849    def __repr__(self):
    4950        return repr([force_unicode(e) for e in self])
    5051
    51 class ValidationError(Exception):
     52class ValidationError(CoreValidationError):
    5253    def __init__(self, message):
    5354        """
    5455        ValidationError can be passed any object that can be printed (usually
Back to Top