def __init__(self, text = _g('Field can not be empty')+'.'): DataRequired.__init__(self, message = text)
def __init__(self, text = _g('Value is not a valid decimal number') + '. ' + _g('Make sure it uses dot as decimal point') + '.'): DataRequired.__init__(self, message = text)
def __init__(self): DataRequired.__init__(self, message="Data required")
def __init__(self, text = _g('Value is not a valid date') + '. ' + _g('Make sure it matches the following format') + ' ' + _g('"dd.mm.yyyy."') + '.'): DataRequired.__init__(self, message = text)
def __init__(self, message=None, *args, **kwargs): super(RequiredIf).__init__() DataRequired.__init__(self) self.message = message self.conditions = kwargs