Update IntegerBlock docs to show correct kwargs (#2930)

It should be max and min value - not length. See [here](07c3ba84fb/wagtail/wagtailcore/blocks/field_block.py (L306)).

So this would work 

`blocks.IntegerBlock(max_value=10, min_value=0)`

but this wouldn't do anything

`blocks.IntegerBlock(max_length=10, min_length=0)`
This commit is contained in:
David Burke 2016-08-19 21:38:00 -04:00 committed by Matt Westcott
parent 989cfb550f
commit db54a9f0c4

View file

@ -103,7 +103,7 @@ IntegerBlock
``wagtail.wagtailcore.blocks.IntegerBlock``
A single-line integer input that validates that the integer is a valid whole number. The keyword arguments ``required``, ``max_length``, ``min_length`` and ``help_text`` are accepted.
A single-line integer input that validates that the integer is a valid whole number. The keyword arguments ``required``, ``max_value``, ``min_value`` and ``help_text`` are accepted.
For an example of ``IntegerBlock`` in use, see :ref:`streamfield_personblock_example`