From 24c95eb9edb1fed8e943f350055d88daf6977e60 Mon Sep 17 00:00:00 2001 From: Ray Luo Date: Sat, 31 Aug 2019 15:32:33 -0700 Subject: [PATCH] IS_IN_DB(..., multiple=(low, high)) excludes high Found and tested with web2py 2.18.5 --- sources/29-web2py-english/07.markmin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/29-web2py-english/07.markmin b/sources/29-web2py-english/07.markmin index 735fb615..c4543ae7 100644 --- a/sources/29-web2py-english/07.markmin +++ b/sources/29-web2py-english/07.markmin @@ -2452,7 +2452,7 @@ db.person.name.requires = IS_NOT_IN_DB(recent, 'person.name') ``IS_IN_DB(db|set, 'table.value_field', '%(representing_field)s', zero='choose one')`` where the third and fourth arguments are optional. -``multiple=`` is also possible if the field type is a list. The default is False. It can be set to True or to a tuple (min, max) to restrict the number of values selected. So ``multiple=(1, 10)`` enforces at least one and at most ten selections. +``multiple=`` is also possible if the field type is a list. The default is False. It can be set to True or to a tuple (min, max) to restrict the number of values selected. So ``multiple=(1, 10)`` enforces at least one and at most nine selections. Other optional arguments are discussed below.