mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-04-30 23:24:42 +00:00
Add test to verify get_subclass() on QuerySet
This commit is contained in:
parent
9111843752
commit
03c8a1929b
1 changed files with 6 additions and 0 deletions
|
|
@ -574,6 +574,12 @@ class InheritanceManagerTests(TestCase):
|
|||
self.child1)
|
||||
|
||||
|
||||
def test_get_subclass_on_queryset(self):
|
||||
self.assertEqual(
|
||||
self.get_manager().all().get_subclass(pk=self.child1.pk),
|
||||
self.child1)
|
||||
|
||||
|
||||
def test_prior_select_related(self):
|
||||
with self.assertNumQueries(1):
|
||||
obj = self.get_manager().select_related(
|
||||
|
|
|
|||
Loading…
Reference in a new issue