From 14abb7c52c128c1ce903d8cfb295f9324081ad39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Sun, 21 Nov 2010 14:06:32 +0000 Subject: [PATCH] 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 --- django/contrib/localflavor/cz/forms.py | 4 ++-- 1 file 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''