diff --git a/django/contrib/localflavor/za/forms.py b/django/contrib/localflavor/za/forms.py
index 9a54f1e..f501aa0 100644
|
a
|
b
|
class ZAIDField(Field):
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | def clean(self, value): |
| 25 | | # strip spaces and dashes |
| 26 | | value = value.strip().replace(' ', '').replace('-', '') |
| 27 | | |
| 28 | 25 | super(ZAIDField, self).clean(value) |
| 29 | 26 | |
| 30 | 27 | if value in EMPTY_VALUES: |
| 31 | 28 | return u'' |
| 32 | 29 | |
| | 30 | # strip spaces and dashes |
| | 31 | value = value.strip().replace(' ', '').replace('-', '') |
| | 32 | |
| 33 | 33 | match = re.match(id_re, value) |
| 34 | 34 | |
| 35 | 35 | if not match: |