Commit 14abb7c5 authored by Honza Král's avatar Honza Král
Browse files

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

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
parent 70b3ac1f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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''