From b595efa0c904310f83619428ae02f20c5710e0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 23 Dec 2015 21:48:57 +0100 Subject: [PATCH] add doc for `birthdate_not_after` configuration option --- source/bundles/person.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/bundles/person.rst b/source/bundles/person.rst index fde93b5f6..0d53f3108 100644 --- a/source/bundles/person.rst +++ b/source/bundles/person.rst @@ -50,3 +50,23 @@ Default ======= The default search is performed on firstname and/or lastname. Both are concatened before search. If values are separated by spaces, the clause `AND` is used : the search `dep ge` will match 'Gérard Depardieu` or 'Jean Depagelles', but not 'Charline Depardieu' (missing 'Ge' in word). + +Configuration options +********************* + +Those options are available under `chill_person` key. + +Example of configuration: + +.. code-block:: yaml + + chill_person: + validation: + birthdate_not_after: P15Y + +birthdate_not_after *string* + The period duration before today during which encoding birthdate is not possible. The period is a string matching the format of `ISO_8601`, which is also use to build `DateInterval classes `_. + + Example: `P1D`, `P18Y` + + Default value: `P1D` which means that birthdate before the current day (= yesterday) are allowed.