From dca8b916ffa391964be26bbd62471d4c11b221fd Mon Sep 17 00:00:00 2001 From: Brobin Date: Sun, 7 Feb 2016 17:22:48 -0600 Subject: Fixed #26154 -- Deprecated CommaSeparatedIntegerField --- docs/ref/checks.txt | 2 ++ docs/ref/models/fields.txt | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'docs/ref') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index f6c304bf95..de9633402f 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -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 ~~~~~~~~~~~ diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 4b100ad98d..4a1c9eefbb 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -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 ` 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 + `\ ``]``. + 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. -- cgit v1.3