Skip to content

Commit d5e82ce

Browse files
Update readme
Added new parameter to custom validator example.
1 parent f6e4d12 commit d5e82ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ You must define your own method ``check_value()`` and if you are receiving any a
127127
from flask_validator import Validator
128128

129129
class ValidateAorB(Validator)
130-
def __init__(self, field, useless, allow_null=True, throw_exception=False, message=None):
130+
def __init__(self, field, useless, allow_null=True, throw_exception=False, message=None, interpolate_message):
131131
self.useless = useless
132132

133-
Validator.__init__(self, field, allow_null, throw_exception, message):
133+
Validator.__init__(self, field, allow_null, throw_exception, message, interpolate_message):
134134

135135
def check_value(self, value):
136136
return if value in ['A', 'B']

0 commit comments

Comments
 (0)