mirror of https://github.com/django/django.git
Fixed #31514 -- Fixed default form widgets in model fields docs.
This commit is contained in:
parent
da606513db
commit
d6db186427
|
@ -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
|
A 64-bit integer, much like an :class:`IntegerField` except that it is
|
||||||
guaranteed to fit numbers from ``-9223372036854775808`` to
|
guaranteed to fit numbers from ``-9223372036854775808`` to
|
||||||
``9223372036854775807``. The default form widget for this field is a
|
``9223372036854775807``. The default form widget for this field is a
|
||||||
:class:`~django.forms.TextInput`.
|
:class:`~django.forms.NumberInput`.
|
||||||
|
|
||||||
``BinaryField``
|
``BinaryField``
|
||||||
---------------
|
---------------
|
||||||
|
@ -647,7 +647,7 @@ optional arguments:
|
||||||
:func:`django.utils.timezone.now`
|
:func:`django.utils.timezone.now`
|
||||||
|
|
||||||
The default form widget for this field is a
|
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
|
and a shortcut for "Today". Includes an additional ``invalid_date`` error
|
||||||
message key.
|
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`.
|
Takes the same extra arguments as :class:`DateField`.
|
||||||
|
|
||||||
The default form widget for this field is a single
|
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.
|
:class:`~django.forms.TextInput` widgets with JavaScript shortcuts.
|
||||||
|
|
||||||
``DecimalField``
|
``DecimalField``
|
||||||
|
@ -1286,7 +1286,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
|
A time, represented in Python by a ``datetime.time`` instance. Accepts the same
|
||||||
auto-population options as :class:`DateField`.
|
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.
|
The admin adds some JavaScript shortcuts.
|
||||||
|
|
||||||
``URLField``
|
``URLField``
|
||||||
|
@ -1297,7 +1297,7 @@ The admin adds some JavaScript shortcuts.
|
||||||
A :class:`CharField` for a URL, validated by
|
A :class:`CharField` for a URL, validated by
|
||||||
:class:`~django.core.validators.URLValidator`.
|
: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
|
Like all :class:`CharField` subclasses, :class:`URLField` takes the optional
|
||||||
:attr:`~CharField.max_length` argument. If you don't specify
|
:attr:`~CharField.max_length` argument. If you don't specify
|
||||||
|
|
Loading…
Reference in New Issue