diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/many_to_one/tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/many_to_one/tests.py b/tests/many_to_one/tests.py index d9a8984c4c..ae9bce6b44 100644 --- a/tests/many_to_one/tests.py +++ b/tests/many_to_one/tests.py @@ -758,6 +758,9 @@ class ManyToOneTests(TestCase): ) with self.assertRaisesMessage(ValueError, msg): th.child_set.count() + # The reverse foreign key manager can be created. + self.assertEqual(th.child_set.model, Third) + th.save() # Now the model is saved, so we will need to execute a query. with self.assertNumQueries(1): |
