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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user