mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Fixed #27904 -- Added a system check that Field.validators are callable.
This commit is contained in:
parent
75503a823f
commit
a452dddb25
4 changed files with 39 additions and 1 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue