Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a typo from [4968].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c80c3922b32b0a907a66ace59d1b61af926f6ec2 1 parent bebf066
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/localflavor/fi/forms.py
View
2  django/contrib/localflavor/fi/forms.py
@@ -38,7 +38,7 @@ def clean(self, value):
(?P<checksum>[%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()
Please sign in to comment.
Something went wrong with that request. Please try again.