mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #24531 -- Improved CommaSeparatedIntegerField validation.
`','`, `'1,,1'`, `',1'` etc. are no longer considered as valid comma-separated integer lists.
This commit is contained in:
committed by
Tim Graham
parent
f4cc0c40a8
commit
3e64f3d0fc
@@ -213,7 +213,8 @@ URLs
|
||||
Validators
|
||||
^^^^^^^^^^
|
||||
|
||||
* ...
|
||||
* Added :func:`django.core.validators.int_list_validator` to generate
|
||||
validators of strings containing integers separated with a custom character.
|
||||
|
||||
Backwards incompatible changes in 1.9
|
||||
=====================================
|
||||
@@ -321,6 +322,9 @@ Miscellaneous
|
||||
that value to construct absolute URLs have been moved to CSS for easier
|
||||
customization.
|
||||
|
||||
* ``CommaSeparatedIntegerField`` validation has been refined to forbid values
|
||||
like ``','``, ``',1'``, and ``'1,,2'``.
|
||||
|
||||
.. _deprecated-features-1.9:
|
||||
|
||||
Features deprecated in 1.9
|
||||
|
||||
Reference in New Issue
Block a user