Skip to content

Commit

Permalink
Fixed a typo from [4968].
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Apr 9, 2007
1 parent bebf066 commit c80c392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/localflavor/fi/forms.py
Expand Up @@ -38,7 +38,7 @@ def clean(self, value):
(?P<checksum>[%s])$""" % checkmarks, value, re.VERBOSE | re.IGNORECASE) (?P<checksum>[%s])$""" % checkmarks, value, re.VERBOSE | re.IGNORECASE)
if not result: if not result:
raise ValidationError(gettext(u'Enter a valid Finnish social security number.')) raise ValidationError(gettext(u'Enter a valid Finnish social security number.'))
gd = match.groupdict() gd = result.groupdict()
checksum = int(gd['date'] + gd['serial']) checksum = int(gd['date'] + gd['serial'])
if checkmarks[checksum % len(checkmarks)] == gd['checksum'].upper(): if checkmarks[checksum % len(checkmarks)] == gd['checksum'].upper():
return u'%s' % value.upper() return u'%s' % value.upper()
Expand Down

0 comments on commit c80c392

Please sign in to comment.