summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatt Deacalion Stevens <matt@dirtymonkey.co.uk>2015-06-09 15:21:23 +0100
committerTim Graham <timograham@gmail.com>2015-06-09 12:33:01 -0400
commit77f3d7adb1d56d4eb5d22a85e8d383602f937790 (patch)
treee1c91d2de90de0f7fe24aca0393c1513425d1789 /docs
parentf67127e0af396e9039038a9e5539425851cf95c4 (diff)
Clarified the default form widgets for model number fields in docs
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/fields.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 0d467eb218..19b73aaada 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -557,7 +557,9 @@ decimal places::
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::
@@ -872,7 +874,9 @@ can change the maximum length using the :attr:`~CharField.max_length` argument.
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:
@@ -927,7 +931,8 @@ The default form widget for this field is a
An integer. Values from ``-2147483648`` to ``2147483647`` are safe in all
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.
``GenericIPAddressField``
-------------------------