Ticket #12595: localflavor_pl_fix.diff
File localflavor_pl_fix.diff, 1.6 KB (added by , 15 years ago) |
---|
-
django/contrib/localflavor/pl/forms.py
39 39 'checksum': _(u'Wrong checksum for the National Identification Number.'), 40 40 } 41 41 42 def __init__(self, *args, **kwargs):42 def __init__(self, max_length=None, min_length=None, *args, **kwargs): 43 43 super(PLPESELField, self).__init__(r'^\d{11}$', 44 44 max_length=None, min_length=None, *args, **kwargs) 45 45 … … 72 72 'checksum': _(u'Wrong checksum for the Tax Number (NIP).'), 73 73 } 74 74 75 def __init__(self, *args, **kwargs):75 def __init__(self, max_length=None, min_length=None, *args, **kwargs): 76 76 super(PLNIPField, self).__init__(r'^\d{3}-\d{3}-\d{2}-\d{2}$|^\d{2}-\d{2}-\d{3}-\d{3}$', 77 77 max_length=None, min_length=None, *args, **kwargs) 78 78 … … 110 110 'checksum': _(u'Wrong checksum for the National Business Register Number (REGON).'), 111 111 } 112 112 113 def __init__(self, *args, **kwargs):113 def __init__(self, max_length=None, min_length=None, *args, **kwargs): 114 114 super(PLREGONField, self).__init__(r'^\d{9,14}$', 115 115 max_length=None, min_length=None, *args, **kwargs) 116 116 … … 148 148 'invalid': _(u'Enter a postal code in the format XX-XXX.'), 149 149 } 150 150 151 def __init__(self, *args, **kwargs):151 def __init__(self, max_length=None, min_length=None, *args, **kwargs): 152 152 super(PLPostalCodeField, self).__init__(r'^\d{2}-\d{3}$', 153 153 max_length=None, min_length=None, *args, **kwargs)