1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Added a test for QuerySet.update() with a ManyToManyField.

This commit is contained in:
Tim Graham
2017-07-07 13:01:38 -04:00
parent 23c529a774
commit a8c70abfdf
2 changed files with 10 additions and 0 deletions

View File

@@ -46,3 +46,4 @@ class Foo(models.Model):
class Bar(models.Model):
foo = models.ForeignKey(Foo, models.CASCADE, to_field='target')
m2m_foo = models.ManyToManyField(Foo, related_name='m2m_foo')