mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed some i18n markup on date error messages. Thanks, Bastian Kleineidam. Refs
#3069. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		@@ -140,7 +140,8 @@ def _isValidDate(date_string):
 | 
			
		||||
    try:
 | 
			
		||||
        date(year, month, day)
 | 
			
		||||
    except ValueError, e:
 | 
			
		||||
        raise ValidationError, gettext('Invalid date: %s.' % e)    
 | 
			
		||||
        msg = gettext('Invalid date: %s') % gettext(str(e))
 | 
			
		||||
        raise ValidationError, msg    
 | 
			
		||||
 | 
			
		||||
def isValidANSIDate(field_data, all_data):
 | 
			
		||||
    if not ansi_date_re.search(field_data):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user