summaryrefslogtreecommitdiff
path: root/tests/forms_tests/models.py
diff options
context:
space:
mode:
authorAnubhav Joshi <anubhav9042@gmail.com>2014-07-09 02:12:40 +0530
committerTim Graham <timograham@gmail.com>2014-07-09 16:01:09 -0400
commit011abb7d96c75f6154c15a8a0f997d8c27698679 (patch)
treeb73e4e4afa2b06ebb759b0533170aa167ebff627 /tests/forms_tests/models.py
parent3a85aae2eacae836e2a92de77615569883b81932 (diff)
Fixed #19671 -- Added warnings that null and validators are ignored for ManyToManyField.
Thanks Loic Bistuer and Tim Graham for help and review.
Diffstat (limited to 'tests/forms_tests/models.py')
-rw-r--r--tests/forms_tests/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/forms_tests/models.py b/tests/forms_tests/models.py
index 8ade923a91..2ec0aa11ef 100644
--- a/tests/forms_tests/models.py
+++ b/tests/forms_tests/models.py
@@ -92,7 +92,7 @@ class ChoiceFieldModel(models.Model):
class OptionalMultiChoiceModel(models.Model):
multi_choice = models.ManyToManyField(ChoiceOptionModel, blank=False, related_name='not_relevant',
default=lambda: ChoiceOptionModel.objects.filter(name='default'))
- multi_choice_optional = models.ManyToManyField(ChoiceOptionModel, blank=True, null=True,
+ multi_choice_optional = models.ManyToManyField(ChoiceOptionModel, blank=True,
related_name='not_relevant2')