Ticket #14741: cz_localflavor_clean.diff

File cz_localflavor_clean.diff, 741 bytes (added by idangazit, 5 years ago)
  • django/contrib/localflavor/cz/forms.py

    diff --git a/django/contrib/localflavor/cz/forms.py b/django/contrib/localflavor/cz/forms.py
    index e980569..655e5ce 100644
    a b class CZBirthNumberField(Field): 
    5151    }
    5252
    5353    def clean(self, value, gender=None):
    54         super(CZBirthNumberField, self).__init__(value)
     54        super(CZBirthNumberField, self).clean(value)
    5555
    5656        if value in EMPTY_VALUES:
    5757            return u''
    class CZICNumberField(Field): 
    108108    }
    109109
    110110    def clean(self, value):
    111         super(CZICNumberField, self).__init__(value)
     111        super(CZICNumberField, self).clean(value)
    112112
    113113        if value in EMPTY_VALUES:
    114114            return u''
Back to Top