summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2020-04-25 21:20:29 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-25 21:21:29 +0200
commit657992cf192b38d7000d9000623c002b3451c401 (patch)
treeee92a5ce31016d8c0ef732731114ac672b4b7a8e
parenta3e4591020ca6d2fae10105b687e93326a185c0b (diff)
[3.0.x] Fixed #31514 -- Fixed default form widgets in model fields docs.
Backport of d6db186427d33889e4d2f3b56e02807d51fc0376 from master
-rw-r--r--docs/ref/models/fields.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index d2a84b1034..0f076066cb 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -546,7 +546,7 @@ guaranteed to fit numbers from ``1`` to ``9223372036854775807``.
A 64-bit integer, much like an :class:`IntegerField` except that it is
guaranteed to fit numbers from ``-9223372036854775808`` to
``9223372036854775807``. The default form widget for this field is a
-:class:`~django.forms.TextInput`.
+:class:`~django.forms.NumberInput`.
``BinaryField``
---------------
@@ -647,7 +647,7 @@ optional arguments:
:func:`django.utils.timezone.now`
The default form widget for this field is a
-:class:`~django.forms.TextInput`. The admin adds a JavaScript calendar,
+:class:`~django.forms.DateInput`. The admin adds a JavaScript calendar,
and a shortcut for "Today". Includes an additional ``invalid_date`` error
message key.
@@ -677,7 +677,7 @@ A date and time, represented in Python by a ``datetime.datetime`` instance.
Takes the same extra arguments as :class:`DateField`.
The default form widget for this field is a single
-:class:`~django.forms.TextInput`. The admin uses two separate
+:class:`~django.forms.DateTimeInput`. The admin uses two separate
:class:`~django.forms.TextInput` widgets with JavaScript shortcuts.
``DecimalField``
@@ -1267,7 +1267,7 @@ However it is not enforced at the model or database level. Use a
A time, represented in Python by a ``datetime.time`` instance. Accepts the same
auto-population options as :class:`DateField`.
-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.TimeInput`.
The admin adds some JavaScript shortcuts.
``URLField``
@@ -1278,7 +1278,7 @@ The admin adds some JavaScript shortcuts.
A :class:`CharField` for a URL, validated by
:class:`~django.core.validators.URLValidator`.
-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.URLInput`.
Like all :class:`CharField` subclasses, :class:`URLField` takes the optional
:attr:`~CharField.max_length` argument. If you don't specify