equal
deleted
inserted
replaced
1 """ |
1 """ |
2 Australian-specific Form helpers |
2 Australian-specific Form helpers |
3 """ |
3 """ |
4 |
4 |
|
5 from django.core.validators import EMPTY_VALUES |
5 from django.forms import ValidationError |
6 from django.forms import ValidationError |
6 from django.forms.fields import Field, RegexField, Select, EMPTY_VALUES |
7 from django.forms.fields import Field, RegexField, Select |
7 from django.forms.util import smart_unicode |
8 from django.utils.encoding import smart_unicode |
8 from django.utils.translation import ugettext_lazy as _ |
9 from django.utils.translation import ugettext_lazy as _ |
9 import re |
10 import re |
10 |
11 |
11 PHONE_DIGITS_RE = re.compile(r'^(\d{10})$') |
12 PHONE_DIGITS_RE = re.compile(r'^(\d{10})$') |
12 |
13 |