diff options
| author | Tim Graham <timograham@gmail.com> | 2017-07-07 13:01:38 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-07-08 07:40:45 -0400 |
| commit | a8c70abfdf68fc841556b317a558c5dcf192b3a6 (patch) | |
| tree | 1ef6f72bcc82ab98ad35a96742a8a6124afa263c /tests/update/models.py | |
| parent | 23c529a7747e62fe0de1a2dc98af7ce42c1c9d36 (diff) | |
Added a test for QuerySet.update() with a ManyToManyField.
Diffstat (limited to 'tests/update/models.py')
| -rw-r--r-- | tests/update/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/update/models.py b/tests/update/models.py index bfcc29bee9..b56dd2258e 100644 --- a/tests/update/models.py +++ b/tests/update/models.py @@ -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') |
