Skip to content

Commit

Permalink
[1.2.X] CZ Localflavor clean() incorrectly called super.__init__. Tha…
Browse files Browse the repository at this point in the history
…nks for the report and patch idangazit!

Backport of r14660 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
honzakral committed Nov 21, 2010
1 parent d04ffd7 commit 4d7525c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/contrib/localflavor/cz/forms.py
Expand Up @@ -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''
Expand Down Expand Up @@ -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''
Expand Down

0 comments on commit 4d7525c

Please sign in to comment.