mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-04 21:44:44 +00:00
RegexBlock error_message typo in docs
In the documention an example had a singular
This commit is contained in:
parent
0fdf98469c
commit
26b7071307
2 changed files with 2 additions and 1 deletions
|
|
@ -201,6 +201,7 @@ Contributors
|
|||
* John Heasly
|
||||
* Nikolai Røed Kristiansen
|
||||
* Alex Zagorodniuk
|
||||
* glassresistor
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue