From 443d5b43efbf78d01f952ae73bbd00534a71eb07 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 28 May 2007 13:08:19 +0000 Subject: [PATCH] unicode: Fixed a bug in lazy_inter(). git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5376 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/validators.py b/django/core/validators.py index 55b71a2e41..ebba5e16c2 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -33,7 +33,7 @@ phone_re = re.compile(r'^[A-PR-Y0-9]{3}-[A-PR-Y0-9]{3}-[A-PR-Y0-9]{4}$', re.IGNO slug_re = re.compile(r'^[-\w]+$') url_re = re.compile(r'^https?://\S+$') -lazy_inter = lazy(lambda a,b: str(a) % b, str) +lazy_inter = lazy(lambda a,b: force_unicode(a) % b, unicode) class ValidationError(Exception): def __init__(self, message):