Changeset 4970
- Timestamp:
- 04/09/07 01:16:44 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/localflavor/fi/forms.py
r4968 r4970 39 39 if not result: 40 40 raise ValidationError(gettext(u'Enter a valid Finnish social security number.')) 41 gd = match.groupdict()41 gd = result.groupdict() 42 42 checksum = int(gd['date'] + gd['serial']) 43 43 if checkmarks[checksum % len(checkmarks)] == gd['checksum'].upper():
