mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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
|
@ -436,6 +436,8 @@ these changes.
|
|||
:ref:`initial SQL data<initial-sql>` in ``myapp/models/sql/``. Move your
|
||||
custom SQL files to ``myapp/sql/``.
|
||||
|
||||
* The model and form ``IPAddressField`` will be removed.
|
||||
|
||||
* FastCGI support via the ``runfcgi`` management command will be
|
||||
removed. Please deploy your project using WSGI.
|
||||
|
||||
|
|
|
@ -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`.
|
||||
|
||||
|
|
|
@ -529,3 +529,12 @@ to ``utils.py`` in an effort to unify all util and utils references:
|
|||
``ModelAdmin.get_formsets`` has been deprecated in favor of the new
|
||||
:meth:`~django.contrib.admin.ModelAdmin.get_formsets_with_inlines`, in order to
|
||||
better handle the case of selecting showing inlines on a ``ModelAdmin``.
|
||||
|
||||
``IPAddressField``
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The :class:`django.db.models.IPAddressField` and
|
||||
:class:`django.forms.IPAddressField` fields have been deprecated in favor of
|
||||
:class:`django.db.models.GenericIPAddressField` and
|
||||
:class:`django.forms.GenericIPAddressField`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue