Author: Honza_Kral
Date: 2010-11-21 08:08:13 -0600 (Sun, 21 Nov 2010)
New Revision: 14661

Modified:
   django/branches/releases/1.2.X/django/contrib/localflavor/cz/forms.py
Log:
[1.2.X] CZ Localflavor clean() incorrectly called super.__init__. Thanks for 
the report and patch idangazit!

Backport of r14660 from trunk.

Modified: django/branches/releases/1.2.X/django/contrib/localflavor/cz/forms.py
===================================================================
--- django/branches/releases/1.2.X/django/contrib/localflavor/cz/forms.py       
2010-11-21 14:06:32 UTC (rev 14660)
+++ django/branches/releases/1.2.X/django/contrib/localflavor/cz/forms.py       
2010-11-21 14:08:13 UTC (rev 14661)
@@ -51,7 +51,7 @@
     }
 
     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 @@
     }
 
     def clean(self, value):
-        super(CZICNumberField, self).__init__(value)
+        super(CZICNumberField, self).clean(value)
 
         if value in EMPTY_VALUES:
             return u''

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to