Django

Code

Changeset 3634

Show
Ignore:
Timestamp:
08/21/06 12:43:34 (2 years ago)
Author:
adrian
Message:

Fixed #2577 -- Made isSlug() validator translation-aware. Thanks for the patch, henrik_kroeger@arcor.de

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/validators.py

    r3305 r3634  
    6969def isSlug(field_data, all_data): 
    7070    if not slug_re.search(field_data): 
    71         raise ValidationError, "This value must contain only letters, numbers, underscores or hyphens." 
     71        raise ValidationError, gettext("This value must contain only letters, numbers, underscores or hyphens.") 
    7272 
    7373def isLowerCase(field_data, all_data):