diff --git a/django/contrib/localflavor/ro/forms.py b/django/contrib/localflavor/ro/forms.py
index 3b168c0..a218bfd 100644
a
|
b
|
class ROCNPField(RegexField):
|
65 | 65 | CNP validations |
66 | 66 | """ |
67 | 67 | value = super(ROCNPField, self).clean(value) |
| 68 | if value in EMPTY_VALUES: |
| 69 | return u'' |
68 | 70 | # check birthdate digits |
69 | 71 | import datetime |
70 | 72 | try: |
… |
… |
class ROIBANField(RegexField):
|
150 | 152 | Strips - and spaces, performs country code and checksum validation |
151 | 153 | """ |
152 | 154 | value = super(ROIBANField, self).clean(value) |
| 155 | if value in EMPTY_VALUES: |
| 156 | return u'' |
153 | 157 | value = value.replace('-','') |
154 | 158 | value = value.replace(' ','') |
155 | 159 | value = value.upper() |
… |
… |
class ROPhoneNumberField(RegexField):
|
180 | 184 | Strips -, (, ) and spaces. Checks the final length. |
181 | 185 | """ |
182 | 186 | value = super(ROPhoneNumberField, self).clean(value) |
| 187 | if value in EMPTY_VALUES: |
| 188 | return u'' |
183 | 189 | value = value.replace('-','') |
184 | 190 | value = value.replace('(','') |
185 | 191 | value = value.replace(')','') |