mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #27904 -- Added a system check that Field.validators are callable.
This commit is contained in:
@@ -102,7 +102,7 @@ class RelativeFieldTests(SimpleTestCase):
|
||||
m2m = models.ManyToManyField(
|
||||
Model,
|
||||
null=True,
|
||||
validators=[''],
|
||||
validators=[lambda x: x],
|
||||
limit_choices_to={'name': 'test_name'},
|
||||
through='ThroughModel',
|
||||
through_fields=('modelm2m', 'model'),
|
||||
|
||||
Reference in New Issue
Block a user