[1.8.x] Clarified the default form widgets for model number fields in docs
Backport of 77f3d7adb1
from master
This commit is contained in:
parent
1e0a5b796c
commit
7ae470cfe2
|
@ -562,7 +562,9 @@ decimal places::
|
||||||
|
|
||||||
models.DecimalField(..., max_digits=19, decimal_places=10)
|
models.DecimalField(..., max_digits=19, decimal_places=10)
|
||||||
|
|
||||||
The default form widget for this field is a :class:`~django.forms.TextInput`.
|
The default form widget for this field is a :class:`~django.forms.NumberInput`
|
||||||
|
when :attr:`~django.forms.Field.localize` is ``False`` or
|
||||||
|
:class:`~django.forms.TextInput` otherwise.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
@ -859,7 +861,9 @@ can change the maximum length using the :attr:`~CharField.max_length` argument.
|
||||||
|
|
||||||
A floating-point number represented in Python by a ``float`` instance.
|
A floating-point number represented in Python by a ``float`` instance.
|
||||||
|
|
||||||
The default form widget for this field is a :class:`~django.forms.TextInput`.
|
The default form widget for this field is a :class:`~django.forms.NumberInput`
|
||||||
|
when :attr:`~django.forms.Field.localize` is ``False`` or
|
||||||
|
:class:`~django.forms.TextInput` otherwise.
|
||||||
|
|
||||||
.. _floatfield_vs_decimalfield:
|
.. _floatfield_vs_decimalfield:
|
||||||
|
|
||||||
|
@ -914,7 +918,8 @@ The default form widget for this field is a
|
||||||
|
|
||||||
An integer. Values from ``-2147483648`` to ``2147483647`` are safe in all
|
An integer. Values from ``-2147483648`` to ``2147483647`` are safe in all
|
||||||
databases supported by Django. The default form widget for this field is a
|
databases supported by Django. The default form widget for this field is a
|
||||||
:class:`~django.forms.TextInput`.
|
:class:`~django.forms.NumberInput` when :attr:`~django.forms.Field.localize`
|
||||||
|
is ``False`` or :class:`~django.forms.TextInput` otherwise.
|
||||||
|
|
||||||
``IPAddressField``
|
``IPAddressField``
|
||||||
------------------
|
------------------
|
||||||
|
|
Loading…
Reference in New Issue