|
@@ -68,7 +68,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param min_length: The minimum allowed length of the field.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
:param search_index: If false (default true), the content of this block will not be indexed for searching.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -83,7 +83,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
:param search_index: If false (default true), the content of this block will not be indexed for searching.
|
|
|
:param rows: Number of rows to show on the textarea (defaults to 1).
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -94,7 +94,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
|
|
|
:param required: If true (the default), the field cannot be left blank.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -107,7 +107,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param max_value: The maximum allowed numeric value of the field.
|
|
|
:param min_value: The minimum allowed numeric value of the field.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -119,7 +119,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param required: If true (the default), the field cannot be left blank.
|
|
|
:param max_value: The maximum allowed numeric value of the field.
|
|
|
:param min_value: The minimum allowed numeric value of the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -134,7 +134,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param min_value: The minimum allowed numeric value of the field.
|
|
|
:param max_digits: The maximum number of digits allowed in the number. This number must be greater than or equal to ``decimal_places``.
|
|
|
:param decimal_places: The number of decimal places to store with the number.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -157,7 +157,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
:param max_length: The maximum allowed length of the field.
|
|
|
:param min_length: The minimum allowed length of the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -170,7 +170,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param max_length: The maximum allowed length of the field.
|
|
|
:param min_length: The minimum allowed length of the field.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -192,7 +192,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param format: Date format. This must be one of the recognized formats listed in the `DATE_INPUT_FORMATS <https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-DATE_INPUT_FORMATS>`_ setting. If not specified Wagtail will use the ``WAGTAIL_DATE_FORMAT`` setting with fallback to '%Y-%m-%d'.
|
|
|
:param required: If true (the default), the field cannot be left blank.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -203,7 +203,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
|
|
|
:param required: If true (the default), the field cannot be left blank.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -215,7 +215,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param format: Date/time format. This must be one of the recognized formats listed in the `DATETIME_INPUT_FORMATS <https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-DATETIME_INPUT_FORMATS>`_ setting. If not specified Wagtail will use the ``WAGTAIL_DATETIME_FORMAT`` setting with fallback to '%Y-%m-%d %H:%M'.
|
|
|
:param required: If true (the default), the field cannot be left blank.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -230,7 +230,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param max_length: The maximum allowed length of the field. Only text is counted; rich text formatting, embedded content and paragraph / line breaks do not count towards the limit.
|
|
|
:param search_index: If false (default true), the content of this block will not be indexed for searching.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -243,7 +243,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param max_length: The maximum allowed length of the field.
|
|
|
:param min_length: The minimum allowed length of the field.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
.. WARNING::
|
|
@@ -259,7 +259,7 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param max_length: The maximum allowed length of the field.
|
|
|
:param min_length: The minimum allowed length of the field.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|
|
@@ -272,8 +272,8 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param required: If true (the default), the field cannot be left blank.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
:param search_index: If false (default true), the content of this block will not be indexed for searching.
|
|
|
- :param widget: The form widget to render the field with (see `Django Widgets <https://docs.djangoproject.com/en/stable/ref/forms/widgets/>`__).
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param widget: The form widget to render the field with (see :doc:`Django Widgets <django:ref/forms/widgets>`).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
``ChoiceBlock`` can also be subclassed to produce a reusable block with the same list of choices everywhere it is used. For example, a block definition such as:
|
|
@@ -317,8 +317,8 @@ All block definitions accept the following optional keyword arguments:
|
|
|
:param required: If true (the default), the field cannot be left blank.
|
|
|
:param help_text: Help text to display alongside the field.
|
|
|
:param search_index: If false (default true), the content of this block will not be indexed for searching.
|
|
|
- :param widget: The form widget to render the field with (see `Django Widgets <https://docs.djangoproject.com/en/stable/ref/forms/widgets/>`__).
|
|
|
- :param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
|
|
|
+ :param widget: The form widget to render the field with (see :doc:`Django Widgets <django:ref/forms/widgets>`).
|
|
|
+ :param validators: A list of validation functions for the field (see :doc:`Django Validators <django:ref/validators>`).
|
|
|
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.
|
|
|
|
|
|
|