mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +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:
parent
3a85aae2ea
commit
011abb7d96
14 changed files with 76 additions and 16 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue