mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.
This commit is contained in:
parent
bc3540ce2c
commit
bcf3532ede
22 changed files with 48 additions and 139 deletions
|
@ -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',
|
||||
)],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue