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:
Honza Král 2010-11-21 14:06:32 +00:00
parent 70b3ac1f07
commit 14abb7c52c
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class CZBirthNumberField(Field):
}
def clean(self, value, gender=None):
super(CZBirthNumberField, self).__init__(value)
super(CZBirthNumberField, self).clean(value)
if value in EMPTY_VALUES:
return u''
@ -108,7 +108,7 @@ class CZICNumberField(Field):
}
def clean(self, value):
super(CZICNumberField, self).__init__(value)
super(CZICNumberField, self).clean(value)
if value in EMPTY_VALUES:
return u''