Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.2.X] CZ Localflavor clean() incorrectly called super.__init__. Tha…

…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...
commit 4d7525c5b1d9503f0f447538409d24a28033763f 1 parent d04ffd7
Honza Král HonzaKral authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/localflavor/cz/forms.py
4 django/contrib/localflavor/cz/forms.py
View
@@ -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''
Please sign in to comment.
Something went wrong with that request. Please try again.