Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.

This commit is contained in:
Tim Graham 2016-12-31 10:30:41 -05:00
parent bc3540ce2c
commit bcf3532ede
22 changed files with 48 additions and 139 deletions

View file

@ -29,12 +29,11 @@ class DeprecatedFieldsTests(SimpleTestCase):
model = CommaSeparatedIntegerModel()
self.assertEqual(
model.check(),
[checks.Warning(
'CommaSeparatedIntegerField has been deprecated. Support '
'for it (except in historical migrations) will be removed '
'in Django 2.0.',
[checks.Error(
'CommaSeparatedIntegerField is removed except for support in '
'historical migrations.',
hint='Use CharField(validators=[validate_comma_separated_integer_list]) instead.',
obj=CommaSeparatedIntegerModel._meta.get_field('csi'),
id='fields.W901',
id='fields.E901',
)],
)