mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #19671 -- Added warnings that null and validators are ignored for ManyToManyField.
Thanks Loic Bistuer and Tim Graham for help and review.
This commit is contained in:
committed by
Tim Graham
parent
3a85aae2ea
commit
011abb7d96
@@ -10,9 +10,7 @@ from .models.article import Article
|
||||
|
||||
class Advertisement(models.Model):
|
||||
customer = models.CharField(max_length=100)
|
||||
publications = models.ManyToManyField(
|
||||
"model_package.Publication", null=True, blank=True
|
||||
)
|
||||
publications = models.ManyToManyField("model_package.Publication", blank=True)
|
||||
|
||||
|
||||
class ModelPackageTests(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user