mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
Fixed #20439 -- Started deprecation of IPAddressField
This commit is contained in:
parent
8f51ba669a
commit
1a63092981
14 changed files with 68 additions and 12 deletions
|
|
@ -657,6 +657,10 @@ For each field, we describe the default widget used if you don't specify
|
|||
|
||||
.. class:: IPAddressField(**kwargs)
|
||||
|
||||
.. deprecated:: 1.7
|
||||
This field has been deprecated in favour of
|
||||
:class:`~django.forms.GenericIPAddressField`.
|
||||
|
||||
* Default widget: :class:`TextInput`
|
||||
* Empty value: ``''`` (an empty string)
|
||||
* Normalizes to: A Unicode object.
|
||||
|
|
|
|||
|
|
@ -849,6 +849,10 @@ An integer. The default form widget for this field is a
|
|||
|
||||
.. class:: IPAddressField([**options])
|
||||
|
||||
.. deprecated:: 1.7
|
||||
This field has been deprecated in favour of
|
||||
:class:`~django.db.models.GenericIPAddressField`.
|
||||
|
||||
An IP address, in string format (e.g. "192.0.2.30"). The default form widget
|
||||
for this field is a :class:`~django.forms.TextInput`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue