From c80c3922b32b0a907a66ace59d1b61af926f6ec2 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 9 Apr 2007 06:16:44 +0000 Subject: [PATCH] Fixed a typo from [4968]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4970 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/localflavor/fi/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/localflavor/fi/forms.py b/django/contrib/localflavor/fi/forms.py index 2b4fcc2969..da5cb5f2a8 100644 --- a/django/contrib/localflavor/fi/forms.py +++ b/django/contrib/localflavor/fi/forms.py @@ -38,7 +38,7 @@ class FISocialSecurityNumber(Field): (?P[%s])$""" % checkmarks, value, re.VERBOSE | re.IGNORECASE) if not result: raise ValidationError(gettext(u'Enter a valid Finnish social security number.')) - gd = match.groupdict() + gd = result.groupdict() checksum = int(gd['date'] + gd['serial']) if checkmarks[checksum % len(checkmarks)] == gd['checksum'].upper(): return u'%s' % value.upper()