Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14741 -- CZ Localflavor clean() incorrectly called super.__ini…

…t__. Thanks for the report and patch idangazit!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 14abb7c52c128c1ce903d8cfb295f9324081ad39 1 parent 70b3ac1
Honza Král authored November 21, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/localflavor/cz/forms.py
4  django/contrib/localflavor/cz/forms.py
@@ -51,7 +51,7 @@ class CZBirthNumberField(Field):
51 51
     }
52 52
 
53 53
     def clean(self, value, gender=None):
54  
-        super(CZBirthNumberField, self).__init__(value)
  54
+        super(CZBirthNumberField, self).clean(value)
55 55
 
56 56
         if value in EMPTY_VALUES:
57 57
             return u''
@@ -108,7 +108,7 @@ class CZICNumberField(Field):
108 108
     }
109 109
 
110 110
     def clean(self, value):
111  
-        super(CZICNumberField, self).__init__(value)
  111
+        super(CZICNumberField, self).clean(value)
112 112
 
113 113
         if value in EMPTY_VALUES:
114 114
             return u''

0 notes on commit 14abb7c

Please sign in to comment.
Something went wrong with that request. Please try again.