Fixed #14741 -- CZ Localflavor clean() incorrectly called super.__init__. Thanks for the report and patch idangazit!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
70b3ac1f07
commit
14abb7c52c
|
@ -51,7 +51,7 @@ class CZBirthNumberField(Field):
|
||||||
}
|
}
|
||||||
|
|
||||||
def clean(self, value, gender=None):
|
def clean(self, value, gender=None):
|
||||||
super(CZBirthNumberField, self).__init__(value)
|
super(CZBirthNumberField, self).clean(value)
|
||||||
|
|
||||||
if value in EMPTY_VALUES:
|
if value in EMPTY_VALUES:
|
||||||
return u''
|
return u''
|
||||||
|
@ -108,7 +108,7 @@ class CZICNumberField(Field):
|
||||||
}
|
}
|
||||||
|
|
||||||
def clean(self, value):
|
def clean(self, value):
|
||||||
super(CZICNumberField, self).__init__(value)
|
super(CZICNumberField, self).clean(value)
|
||||||
|
|
||||||
if value in EMPTY_VALUES:
|
if value in EMPTY_VALUES:
|
||||||
return u''
|
return u''
|
||||||
|
|
Loading…
Reference in New Issue