diff options
| author | Honza Král <honza.kral@gmail.com> | 2010-11-21 14:06:32 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2010-11-21 14:06:32 +0000 |
| commit | 14abb7c52c128c1ce903d8cfb295f9324081ad39 (patch) | |
| tree | 35d6856d1b7788c7c6f89377db67308a60a1a3fc | |
| parent | 70b3ac1f07b60dd1b6888b71fe20596fa64527dc (diff) | |
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
| -rw-r--r-- | django/contrib/localflavor/cz/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/localflavor/cz/forms.py b/django/contrib/localflavor/cz/forms.py index e980569c70..655e5ce4de 100644 --- a/django/contrib/localflavor/cz/forms.py +++ b/django/contrib/localflavor/cz/forms.py @@ -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'' |
