mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #26154 -- Deprecated CommaSeparatedIntegerField
This commit is contained in:
parent
f7a9872b91
commit
dca8b916ff
6 changed files with 62 additions and 1 deletions
|
@ -165,6 +165,8 @@ Fields
|
|||
* **fields.W900**: ``IPAddressField`` has been deprecated. Support for it
|
||||
(except in historical migrations) will be removed in Django 1.9. *This check
|
||||
appeared in Django 1.7 and 1.8*.
|
||||
* **fields.W901**: ``CommaSeparatedIntegerField`` has been deprecated. Support
|
||||
for it (except in historical migrations) will be removed in Django 2.0.
|
||||
|
||||
File Fields
|
||||
~~~~~~~~~~~
|
||||
|
|
|
@ -471,12 +471,17 @@ The default form widget for this field is a :class:`~django.forms.TextInput`.
|
|||
of. Refer to the :ref:`MySQL database notes <mysql-collation>` for
|
||||
details.
|
||||
|
||||
|
||||
``CommaSeparatedIntegerField``
|
||||
------------------------------
|
||||
|
||||
.. class:: CommaSeparatedIntegerField(max_length=None, **options)
|
||||
|
||||
.. deprecated:: 1.9
|
||||
|
||||
This field is deprecated in favor of :class:`~django.db.models.CharField`
|
||||
with ``validators=[``\ :func:`validate_comma_separated_integer_list
|
||||
<django.core.validators.validate_comma_separated_integer_list>`\ ``]``.
|
||||
|
||||
A field of integers separated by commas. As in :class:`CharField`, the
|
||||
:attr:`~CharField.max_length` argument is required and the note about database
|
||||
portability mentioned there should be heeded.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue