We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6db122c commit 079ee1fCopy full SHA for 079ee1f
tests/custom_managers/tests.py
@@ -95,6 +95,13 @@ def test_queryset_and_manager(self):
95
self.assertQuerysetEqual(queryset, ["Bugs Bunny"], six.text_type)
96
self.assertEqual(queryset._filter_CustomManager, True)
97
98
+ def test_related_manager(self):
99
+ """
100
+ The related managers extend the default manager.
101
102
+ self.assertIsInstance(self.droopy.books, PublishedBookManager)
103
+ self.assertIsInstance(self.b2.authors, PersonManager)
104
+
105
def test_no_objects(self):
106
"""
107
The default manager, "objects", doesn't exist, because a custom one
0 commit comments