Ticket #14864: 14864.diff

File 14864.diff, 544 bytes (added by Idan Gazit, 13 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):  
    2020    }
    2121
    2222    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,
    2424                min_length=2, *args, **kwargs)
    2525
    2626    def clean(self, value):
Back to Top