From 26b7071307c91161dded9814d254cc693fe2e96c Mon Sep 17 00:00:00 2001 From: Mikela Clemmons Date: Tue, 10 Jan 2017 13:40:21 -0800 Subject: [PATCH] RegexBlock error_message typo in docs In the documention an example had a singular --- CONTRIBUTORS.rst | 1 + docs/topics/streamfield.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index b6cfd3eef7..89ce87c5be 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -201,6 +201,7 @@ Contributors * John Heasly * Nikolai Røed Kristiansen * Alex Zagorodniuk +* glassresistor Translators =========== diff --git a/docs/topics/streamfield.rst b/docs/topics/streamfield.rst index d1df8e0cd9..92b8a398de 100644 --- a/docs/topics/streamfield.rst +++ b/docs/topics/streamfield.rst @@ -132,7 +132,7 @@ A single-line text input that validates a string against a regex expression. The .. code-block:: python - blocks.RegexBlock(regex=r'^[0-9]{3}$', error_message={ + blocks.RegexBlock(regex=r'^[0-9]{3}$', error_messages={ 'invalid': "Not a valid library card number." })