Beispiel #1
0
def _valid_user(form, field):
    if not User.exists(field.data):
        raise ValidationError('No such user')
Beispiel #2
0
def _name_in_use(form, field):
	if User.exists(field.data):
		raise ValidationError('name in use')