mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.
This commit is contained in:
@@ -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',
|
||||
)],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user