1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

Fixed #26154 -- Deprecated CommaSeparatedIntegerField

This commit is contained in:
Brobin
2016-02-07 17:22:48 -06:00
committed by Tim Graham
parent f7a9872b91
commit dca8b916ff
6 changed files with 62 additions and 1 deletions

View File

@@ -1144,6 +1144,17 @@ class CharField(Field):
class CommaSeparatedIntegerField(CharField):
default_validators = [validators.validate_comma_separated_integer_list]
description = _("Comma-separated integers")
system_check_deprecated_details = {
'msg': (
'CommaSeparatedIntegerField has been deprecated. Support '
'for it (except in historical migrations) will be removed '
'in Django 2.0.'
),
'hint': (
'Use CharField(validators=[validate_comma_separated_integer_list]) instead.'
),
'id': 'fields.W901',
}
def formfield(self, **kwargs):
defaults = {