Ticket #14864: 14864.diff
File 14864.diff, 544 bytes (added by , 14 years ago) |
---|
-
django/contrib/localflavor/ro/forms.py
diff --git a/django/contrib/localflavor/ro/forms.py b/django/contrib/localflavor/ro/forms.py index dd86fce..3b168c0 100644
a b class ROCIFField(RegexField): 20 20 } 21 21 22 22 def __init__(self, *args, **kwargs): 23 super(ROCIFField, self).__init__(r'^ [0-9]{2,10}', max_length=10,23 super(ROCIFField, self).__init__(r'^(RO)?[0-9]{2,10}', max_length=10, 24 24 min_length=2, *args, **kwargs) 25 25 26 26 def clean(self, value):