diff --git a/django/contrib/localflavor/at/forms.py b/django/contrib/localflavor/at/forms.py
index e428fda..cacd4a6 100644
|
a
|
b
|
AT-specific Form helpers
|
| 4 | 4 | |
| 5 | 5 | import re |
| 6 | 6 | |
| | 7 | from django.core.validators import EMPTY_VALUES |
| 7 | 8 | from django.utils.translation import ugettext_lazy as _ |
| 8 | 9 | from django.forms.fields import Field, RegexField, Select |
| 9 | 10 | from django.forms import ValidationError |
| … |
… |
class ATSocialSecurityNumberField(Field):
|
| 49 | 50 | } |
| 50 | 51 | |
| 51 | 52 | def clean(self, value): |
| | 53 | super(ATSocialSecurityNumberField, self).clean(value) |
| | 54 | if value in EMPTY_VALUES: |
| | 55 | return u'' |
| 52 | 56 | if not re_ssn.search(value): |
| 53 | 57 | raise ValidationError(self.error_messages['invalid']) |
| 54 | 58 | sqnr, date = value.split(" ") |